binutils-gdb/gdb/cli
Tom Tromey 3c9ebddd93 Replace do_restore_instream_cleanup with scoped_restore
This changes the users of do_restore_instream_cleanup to use a
scoped_restore instead.  This patch is broken out because it warrants
some additional attention: in particular it's unclear to me whether
current_ui can change in the body of these functions -- but if it can,
then the cleanup would have modified a different UI's instream member.

ChangeLog
2017-08-03  Tom Tromey  <tom@tromey.com>

	* top.h (do_restore_instream_cleanup): Remove.
	* top.c (do_restore_instream_cleanup): Remove.
	(read_command_file): Use scoped_restore.
	* cli/cli-script.c (execute_user_command): Use scoped_restore.
2017-08-03 07:59:06 -06:00
..
cli-cmds.c More uses of scoped_restore 2017-08-03 07:59:00 -06:00
cli-cmds.h Change return type of find_and_open_script 2017-08-03 07:58:53 -06:00
cli-decode.c Introduce class completion_tracker & rewrite completion<->readline interaction 2017-07-17 14:45:59 +01:00
cli-decode.h Clean up "completer_handle_brkchars" callback handling 2017-07-17 12:05:03 +01:00
cli-dump.c Use containers to avoid cleanups 2017-08-03 07:59:02 -06:00
cli-interp.c
cli-interp.h
cli-logging.c
cli-script.c Replace do_restore_instream_cleanup with scoped_restore 2017-08-03 07:59:06 -06:00
cli-script.h
cli-setshow.c
cli-setshow.h
cli-utils.c
cli-utils.h