Remove struct tui_data_info
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 20:03:04 +0000 (14:03 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:30 +0000 (07:48 -0600)
commit238eb706f902da8afef1d5e3c9fdfeecf688bac3
treed36be41771293a95bd1489fc81ba0d205df0b303
parent81491aa0968e5bcab0388914f909ccb12e084e32
Remove struct tui_data_info

Like the previous two patches, this removes struct tui_data_info in
favor of inlining its contents into tui_data_window.  This was the
last member of the tui_win_info detail union, so that is removed.

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

* tui/tui-windata.c (tui_display_all_data)
(tui_display_data_from_line, tui_display_data_from)
(tui_check_data_values, tui_data_window::do_scroll_vertical):
Update.
* tui/tui-regs.c (tui_last_regs_line_no)
(tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
(tui_show_registers, tui_show_register_group)
(tui_display_registers_from, tui_display_reg_element_at_line)
(tui_display_registers_from_line, tui_check_register_values)
(tui_reg_next, tui_reg_prev): Update.
* tui/tui-layout.c (tui_set_layout, show_data): Update.
* tui/tui-data.h (struct tui_data_info): Remove.  Move contents to
tui_data_window.
(struct tui_win_info) <detail>: Remove.  Add new fields from
tui_data_info.
(TUI_DATA_WIN): Add cast.
* tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
(~tui_data_window): Simplify.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
gdb/tui/tui-regs.c
gdb/tui/tui-windata.c