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:52:00 +0100 |
commit | 751b0f7dcfee83f60c1224790b9665c92be50fd8 (patch) | |
tree | 3341d15e46804f3bb8cdf21f7c44be2f38838ceb /gdb/top.c | |
parent | ddacf2e67df55cdaea63f8803e70e8367de5815c (diff) | |
download | gdb-751b0f7dcfee83f60c1224790b9665c92be50fd8.zip gdb-751b0f7dcfee83f60c1224790b9665c92be50fd8.tar.gz gdb-751b0f7dcfee83f60c1224790b9665c92be50fd8.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/top.c')
-rw-r--r-- | gdb/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -386,7 +386,7 @@ new_ui_command (char *args, int from_tty) interpreter_name = argv[0]; tty_name = argv[1]; - make_cleanup (restore_ui_cleanup, current_ui); + make_cleanup_restore_current_ui (); failure_chain = make_cleanup (null_cleanup, NULL); |