Separate out execution-info window
authorTom Tromey <tom@tromey.com>
Fri, 21 Jun 2019 01:59:06 +0000 (19:59 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:44 +0000 (07:48 -0600)
commit489e9d8b7bb3337a7f4f902a03c176c22faeabc7
tree0ef7391a8ad8df0e8c463889a64c17164f693fcd
parentc3fabb7d69b3735bc6042a2992729944c8ced62c
Separate out execution-info window

This pulls the EXEC_INFO_WIN case out into its own subclass of
tui_gen_win_info.  This lets us remove an element from
union tui_which_element.

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

* tui/tui-winsource.c
(tui_exec_info_window::maybe_allocate_content): New method.
(tui_set_exec_info_content, tui_show_exec_info_content): Update.
* tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
(make_source_or_disasm_window): Add cast.
* tui/tui-data.h (union tui_which_element) <simple_string>:
Remove.
(struct tui_source_info): New.
(struct tui_source_window_base) <execution_info>: Change type.
* tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
case, and add assert.
(tui_alloc_content): Add assert.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
gdb/tui/tui-winsource.c