Use scoped_restore for current_ui
authorTom Tromey <tom@tromey.com>
Fri, 23 Sep 2016 02:50:52 +0000 (20:50 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:32 +0000 (14:17 -0600)
commit4b6749b9a4680e79affdb9c02ea2f5ba39a54587
tree4036cf2242831344176ee269127a32c6718009c5
parent9746809447893fd4672ea6babf4e961157cb541d
Use scoped_restore for current_ui

This changes most uses of make_cleanup_restore_current_ui to use
scoped_restore.  The use in switch_thru_all_uis_init still remains;
that is dealt with in a later patch by replacing this iterator with a
real class.

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

* top.c (new_ui_command, wait_sync_command_done)
(gdb_readline_wrapper): Use scoped_restore.
* infrun.c (fetch_inferior_event): Use scoped_restore.
* infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
gdb/ChangeLog
gdb/infcall.c
gdb/infrun.c
gdb/top.c