More uses of scoped_restore
authorTom Tromey <tom@tromey.com>
Thu, 27 Apr 2017 04:53:40 +0000 (22:53 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:59:00 +0000 (07:59 -0600)
commit2ec845e758762030f2333c21fa532fc57fe3762f
tree9732e9de0eb998580859fcc3d2a33285b454d561
parentb3bc84537bc6de78e2bbd550ce9c57dd4b7e2ec6
More uses of scoped_restore

There were a few more places in gdb that could easily use
scoped_restore, replacing some cleanups.

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

* reverse.c (exec_direction_default): Remove.
(exec_reverse_once): Use scoped_restore.
* remote.c (restore_remote_timeout): Remove.
(remote_flash_erase, remote_flash_write, remote_flash_done)
(readchar, remote_serial_write): Use scoped_restore.
* cli/cli-script.c (struct source_cleanup_lines_args)
(source_cleanup_lines): Remove.
(script_from_file): Use scoped_restore.
* cli/cli-cmds.c (source_verbose_cleanup): Remove.
(source_command): Use scoped_restore.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-script.c
gdb/remote.c
gdb/reverse.c