Use scoped_restore for ui_file
authorTom Tromey <tom@tromey.com>
Fri, 23 Sep 2016 02:33:30 +0000 (20:33 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:32 +0000 (14:17 -0600)
commit9746809447893fd4672ea6babf4e961157cb541d
tree0d82c7443e54ba27007cf112c1ae506872bb4949
parentb7b633e9b13fc5697af035f4504c9790c612a8c7
Use scoped_restore for ui_file

This replaces all the uses of make_cleanup_restore_ui_file with
scoped_restore.

2016-10-21  Tom Tromey  <tom@tromey.com>

* utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
(struct restore_ui_file_closure): Remove.
* utils.h (make_cleanup_restore_ui_file): Don't declare.
* guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
scoped_restore.
* top.c (execute_command_to_string): Use scoped_restore.
gdb/ChangeLog
gdb/guile/scm-ports.c
gdb/top.c
gdb/utils.c
gdb/utils.h