diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-22 12:07:13 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:48 -0600 |
commit | 115ac53b852ed91e23d97e8357f24216609fa86f (patch) | |
tree | eafc89b461c1ea3fe593dc863c75eaa0468d930a /gdb/tui/tui-data.c | |
parent | eaf9738bedf8de68d4bf8eafd0689cf1973648aa (diff) | |
download | gdb-115ac53b852ed91e23d97e8357f24216609fa86f.zip gdb-115ac53b852ed91e23d97e8357f24216609fa86f.tar.gz gdb-115ac53b852ed91e23d97e8357f24216609fa86f.tar.bz2 |
Remove "data_content" and "data_content_count" from TUI data window
The TUI has some stub code for adding data other than registers to the
data window. However, it doesn't do anything, and apparently never
has. This removes the dead code.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-data.c (tui_data_item_window): Update.
* tui/tui-windata.h (tui_check_data_values): Don't declare.
* tui/tui-windata.c (tui_display_all_data)
(tui_display_data_from_line): Update.
(tui_check_data_values): Remove.
* tui/tui-regs.c (tui_show_register_group)
(tui_display_reg_element_at_line): Update.
* tui/tui-hooks.c (tui_register_changed)
(tui_refresh_frame_and_register_information): Call
tui_check_register_values.
* tui/tui-data.h (struct tui_data_window) <data_content,
data_content_count, data_type>: Remove.
(enum tui_data_type): Remove.
Diffstat (limited to 'gdb/tui/tui-data.c')
-rw-r--r-- | gdb/tui/tui-data.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 000b3c9..5cf5433 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -175,8 +175,6 @@ tui_cmd_window::clear_detail () void tui_data_window::clear_detail () { - data_content = NULL; - data_content_count = 0; regs_content = NULL; regs_content_count = 0; regs_column_count = 1; @@ -485,9 +483,6 @@ tui_data_window::~tui_data_window () tui_free_data_content (regs_content, regs_content_count); regs_content = NULL; regs_content_count = 0; - tui_free_data_content (data_content, data_content_count); - data_content = NULL; - data_content_count = 0; regs_column_count = 1; display_regs = false; content = NULL; @@ -567,8 +562,6 @@ free_content (tui_win_content content, tui_data_item_window::~tui_data_item_window () { - if (data_type != TUI_REGISTER) - xfree ((void *) name); xfree (value); xfree (content); } |