binutils-gdb/gdb/tui
Tom Tromey 53e7cdbaa1 Remove union tui_which_element
This removes union tui_which_element, instead moving the content
directly into tui_source_window_base.  This allows for the deletion of
a fair amount of code.  Now the TUI window hierarchy is more
type-safe.  In particular, there is never any confusion now about
which members are in use by which subtype.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

	* tui/tui-winsource.h (tui_update_source_window_as_is)
	(tui_alloc_source_buffer, tui_line_is_displayed)
	(tui_addr_is_displayed): Change type of win_info.
	* tui/tui-winsource.c (tui_update_source_window_as_is)
	(tui_clear_source_content, tui_show_source_line)
	(tui_show_source_content, tui_source_window_base::refill)
	(tui_source_window_base::set_is_exec_point_at)
	(tui_source_window_base::set_is_exec_point_at)
	(tui_update_breakpoint_info, tui_set_exec_info_content): Update.
	(tui_alloc_source_buffer, tui_line_is_displayed)
	(tui_addr_is_displayed): Change type of win_info.  Update.
	* tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
	(tui_source_window_base::do_make_visible_with_new_height):
	Update.
	* tui/tui-source.c (tui_set_source_content)
	(tui_set_source_content_nil)
	(tui_source_window::do_scroll_vertical): Update.
	* tui/tui-layout.c (show_layout): Update.
	* tui/tui-disasm.c (tui_set_disassem_content)
	(tui_disasm_window::do_scroll_vertical): Update.
	* tui/tui-data.h (tui_win_content): Remove.
	(struct tui_gen_win_info) <content, content_size>: Remove.
	(struct tui_source_element): Add initializers and destructor.
	(union tui_which_element, struct tui_win_element): Remove.
	(struct tui_source_window_base) <content>: New field.
	(struct tui_data_window): Remove destructor.
	(tui_alloc_content, tui_free_win_content)
	(tui_free_all_source_wins_content): Don't declare.
	* tui/tui-data.c (tui_initialize_static_data): Update.
	(init_content_element, tui_alloc_content): Remove.
	(~tui_gen_win_info): Update.
	(~tui_data_window, tui_free_all_source_wins_content)
	(tui_free_win_content, free_content, free_content_elements):
	Remove.
2019-06-25 07:48:50 -06:00
..
ChangeLog-1998-2003
tui-command.c Derive tui_win_info from tui_gen_win_info 2019-06-25 07:48:37 -06:00
tui-command.h
tui-data.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-data.h Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-disasm.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-disasm.h Introduce methods for scrolling 2019-06-25 07:48:28 -06:00
tui-file.c
tui-file.h
tui-hooks.c Remove "data_content" and "data_content_count" from TUI data window 2019-06-25 07:48:48 -06:00
tui-hooks.h
tui-interp.c
tui-io.c Derive tui_win_info from tui_gen_win_info 2019-06-25 07:48:37 -06:00
tui-io.h
tui-layout.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-layout.h
tui-out.c
tui-out.h
tui-regs.c Separate out data window 2019-06-25 07:48:48 -06:00
tui-regs.h
tui-source.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-source.h More type safety for TUI source window functions 2019-06-25 07:48:50 -06:00
tui-stack.c Separate out locator window 2019-06-25 07:48:45 -06:00
tui-stack.h
tui-win.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-win.h Introduce methods for scrolling 2019-06-25 07:48:28 -06:00
tui-windata.c Separate out data window 2019-06-25 07:48:48 -06:00
tui-windata.h Remove "data_content" and "data_content_count" from TUI data window 2019-06-25 07:48:48 -06:00
tui-wingeneral.c Fix "auxiliary" typo 2019-06-25 07:48:49 -06:00
tui-wingeneral.h Introduce enum tui_box 2019-06-25 07:48:42 -06:00
tui-winsource.c Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui-winsource.h Remove union tui_which_element 2019-06-25 07:48:50 -06:00
tui.c Derive tui_win_info from tui_gen_win_info 2019-06-25 07:48:37 -06:00
tui.h Fix "auxiliary" typo 2019-06-25 07:48:49 -06:00