diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:15 -0600 |
commit | 7134f2eb9230f86adb8839ac9cc737c7f4b47b59 (patch) | |
tree | 5beb2778dee4f284d05d5a6988b96e745031ecf2 /gdb/ChangeLog | |
parent | 22b7b0412bceb80ecd5de39a8e05742eb3cbb324 (diff) | |
download | gdb-7134f2eb9230f86adb8839ac9cc737c7f4b47b59.zip gdb-7134f2eb9230f86adb8839ac9cc737c7f4b47b59.tar.gz gdb-7134f2eb9230f86adb8839ac9cc737c7f4b47b59.tar.bz2 |
Don't derive tui_data_item_window from tui_gen_win_info
There's no deep reason that tui_data_item_window should derive from
tui_gen_win_info -- it currently uses a curses window to render, but
that isn't truly needed, and it adds some hacks to other parts of the
TUI.
This patch changes tui_data_item_window so that it doesn't have a base
class, and updates the register window. This simplifies the code and
enables a subsequent cleanup.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::display_registers_from)
(tui_data_window::display_registers_from)
(tui_data_window::first_data_item_displayed)
(tui_data_window::delete_data_content_windows): Update.
(tui_data_window::refresh_window, tui_data_window::no_refresh):
Remove.
(tui_data_window::check_register_values): Update.
(tui_data_item_window::rerender): Add parameters. Update.
(tui_data_item_window::refresh_window): Remove.
* tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
virtual.
* tui/tui-regs.h (struct tui_data_item_window): Don't derive from
tui_gen_win_info.
<refresh_window, max_height, min_height>: Remove.
<rerender>: Add parameters.
<x, y, visible>: New members.
(struct tui_data_window) <refresh_window, no_refresh>: Remove.
<m_item_width>: New member.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2291034..37484e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,26 @@ 2020-07-01 Tom Tromey <tom@tromey.com> + * tui/tui-regs.c (tui_data_window::display_registers_from) + (tui_data_window::display_registers_from) + (tui_data_window::first_data_item_displayed) + (tui_data_window::delete_data_content_windows): Update. + (tui_data_window::refresh_window, tui_data_window::no_refresh): + Remove. + (tui_data_window::check_register_values): Update. + (tui_data_item_window::rerender): Add parameters. Update. + (tui_data_item_window::refresh_window): Remove. + * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer + virtual. + * tui/tui-regs.h (struct tui_data_item_window): Don't derive from + tui_gen_win_info. + <refresh_window, max_height, min_height>: Remove. + <rerender>: Add parameters. + <x, y, visible>: New members. + (struct tui_data_window) <refresh_window, no_refresh>: Remove. + <m_item_width>: New member. + +2020-07-01 Tom Tromey <tom@tromey.com> + * tui/tui-regs.c (tui_data_window::show_register_group) (tui_data_window::check_register_values): Update. * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename |