diff options
author | Pedro Alves <palves@redhat.com> | 2016-09-06 23:17:14 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-09-06 23:17:14 +0100 |
commit | a025b477cc466112af0b120c5f2bf5d62a62017e (patch) | |
tree | 3de71d9de509bb829966933938dc6af1b75afdc2 /gdb/infrun.c | |
parent | d8457a04b71cbd642a00352dce0539fe1fe22dd4 (diff) | |
download | gdb-a025b477cc466112af0b120c5f2bf5d62a62017e.zip gdb-a025b477cc466112af0b120c5f2bf5d62a62017e.tar.gz gdb-a025b477cc466112af0b120c5f2bf5d62a62017e.tar.bz2 |
Introduce make_cleanup_restore_current_ui
Just a tidy, no functional changes.
gdb/ChangeLog:
2016-09-06 Pedro Alves <palves@redhat.com>
* event-top.c (restore_ui_cleanup): Now static.
(make_cleanup_restore_current_ui): New function.
(switch_thru_all_uis_init): Use it.
* infcall.c (call_thread_fsm_should_stop): Use it.
* infrun.c (fetch_inferior_event): Use it.
* top.c (new_ui_command): Use it.
* top.h (restore_ui_cleanup): Delete declaration.
(make_cleanup_restore_current_ui): New declaration.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 90841f4..70d7a09 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3915,7 +3915,7 @@ fetch_inferior_event (void *client_data) /* Events are always processed with the main UI as current UI. This way, warnings, debug output, etc. are always consistently sent to the main console. */ - make_cleanup (restore_ui_cleanup, current_ui); + make_cleanup_restore_current_ui (); current_ui = main_ui; /* End up with readline processing input, if necessary. */ |