binutils-gdb/gdb/tui
Tom Tromey 0e454242cc Remove make_cleanup_restore_current_ui
This removes make_cleanup_restore_current_ui by converting the last
use.  The last use was in a few functions used to iterate over all
UIs.  This patch replaces these functions with a class, and arranges
for the class destructor to do the needed cleanup.

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

	* tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
	(tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
	(tui_on_no_history, tui_on_user_selected_context_changed):
	Update.
	* top.h (switch_thru_all_uis): New class.
	(SWITCH_THRU_ALL_UIS): Rewrite.
	(make_cleanup_restore_current_ui, switch_thru_all_uis_init)
	(switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
	declare.
	* mi/mi-interp.c (mi_new_thread, mi_thread_exit)
	(mi_record_changed, mi_inferior_added, mi_inferior_appeared)
	(mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
	(mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
	(mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
	(mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
	(mi_breakpoint_created, mi_breakpoint_deleted)
	(mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
	(mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
	(mi_memory_changed, mi_user_selected_context_changed): Update.
	* infrun.c (all_uis_check_sync_execution_done)
	(all_uis_on_sync_execution_starting, normal_stop): Update.
	* event-top.c (restore_ui_cleanup)
	(make_cleanup_restore_current_ui, switch_thru_all_uis_init)
	(switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
	* cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
	(cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
	(cli_on_no_history, cli_on_user_selected_context_changed):
	Update.
	* breakpoint.c (watchpoint_check): Update.
2016-10-21 14:17:34 -06:00
..
ChangeLog-1998-2003
tui-command.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-command.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-data.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-data.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-disasm.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-disasm.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-file.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-file.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-hooks.c TUI: GC tui_target_has_run 2016-04-12 17:00:54 +01:00
tui-hooks.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-interp.c Remove make_cleanup_restore_current_ui 2016-10-21 14:17:34 -06:00
tui-io.c Use getcurx in curses code 2016-07-14 10:35:38 -06:00
tui-io.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-layout.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-layout.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-out.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-regs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-regs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-source.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-source.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-stack.c Pass a NULL pointer as the last argument to find_pc_partial_function. 2016-06-14 11:49:34 -07:00
tui-stack.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-win.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-win.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-windata.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-windata.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-wingeneral.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-wingeneral.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui-winsource.c Use getcurx in curses code 2016-07-14 10:35:38 -06:00
tui-winsource.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
tui.c Make gdb_in_secondary_prompt_p() be per UI 2016-06-21 01:11:51 +01:00
tui.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00