aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-07-01 21:21:12 -0600
committerTom Tromey <tom@tromey.com>2020-07-01 21:21:14 -0600
commit9ab26b4a0fdc5fba707abf56abfb4c503b35c3e5 (patch)
treeb8c09ee746234a419312422f8c6bc705ca240610
parente555083f95748276ab7a229c46aa8d5c0ef9fbc4 (diff)
downloadgdb-9ab26b4a0fdc5fba707abf56abfb4c503b35c3e5.zip
gdb-9ab26b4a0fdc5fba707abf56abfb4c503b35c3e5.tar.gz
gdb-9ab26b4a0fdc5fba707abf56abfb4c503b35c3e5.tar.bz2
Remove tui_data_window::name
The "name" member of tui_data_window was set, but never used. This removes it. gdb/ChangeLog 2020-07-01 Tom Tromey <tom@tromey.com> * tui/tui-regs.c (tui_data_window::show_register_group): Update. * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-regs.c1
-rw-r--r--gdb/tui/tui-regs.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 95e2b2d..cb0eb08 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-07-01 Tom Tromey <tom@tromey.com>
+ * tui/tui-regs.c (tui_data_window::show_register_group): Update.
+ * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
+
+2020-07-01 Tom Tromey <tom@tromey.com>
+
* tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
* tui/tui-winsource.h (enum tui_line_or_address_kind)
(struct tui_line_or_address): Move from tui-data.h.
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 15ce7a0..39f5d73 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -262,7 +262,6 @@ tui_data_window::show_register_group (struct reggroup *group,
if (!refresh_values_only)
{
data_item_win->item_no = regnum;
- data_item_win->name = name;
data_item_win->highlight = false;
}
tui_get_register (frame, data_item_win, regnum, 0);
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h
index 250f4e7..7acc0c7 100644
--- a/gdb/tui/tui-regs.h
+++ b/gdb/tui/tui-regs.h
@@ -48,7 +48,6 @@ struct tui_data_item_window : public tui_gen_win_info
return 1;
}
- const char *name = nullptr;
/* The register number, or data display number. */
int item_no = -1;
bool highlight = false;