aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-13 15:55:48 -0600
committerTom Tromey <tom@tromey.com>2019-08-20 16:22:05 -0600
commit8e114aab8bdab9a988dfc0afbb3fecc17e2d45b6 (patch)
tree254ce6ed28c2c65426daa3f5ce4242c269fefefe /gdb
parent1a4f81dd7e06f54f4b84f276447eb167f7529b09 (diff)
downloadgdb-8e114aab8bdab9a988dfc0afbb3fecc17e2d45b6.zip
gdb-8e114aab8bdab9a988dfc0afbb3fecc17e2d45b6.tar.gz
gdb-8e114aab8bdab9a988dfc0afbb3fecc17e2d45b6.tar.bz2
Remove tui_data_item_window::value
The field tui_data_item_window::value is not used, so remove it. gdb/ChangeLog 2019-08-20 Tom Tromey <tom@tromey.com> * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove field. * tui/tui-regs.c (~tui_data_item_window): Update.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tui/tui-regs.c1
-rw-r--r--gdb/tui/tui-regs.h1
3 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 346cc35..b4108d9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2019-08-20 Tom Tromey <tom@tromey.com>
+ * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
+ field.
+ * tui/tui-regs.c (~tui_data_item_window): Update.
+
+2019-08-20 Tom Tromey <tom@tromey.com>
+
* tui/tui-regs.c (tui_register_format, tui_get_register): Move
earlier.
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 9ea6e72..aebea49 100644
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -103,7 +103,6 @@ tui_get_register (struct frame_info *frame,
tui_data_item_window::~tui_data_item_window ()
{
- xfree (value);
xfree (content);
}
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h
index 7b0bb50..d54b556 100644
--- a/gdb/tui/tui-regs.h
+++ b/gdb/tui/tui-regs.h
@@ -38,7 +38,6 @@ struct tui_data_item_window : public tui_gen_win_info
const char *name = nullptr;
/* The register number, or data display number. */
int item_no = -1;
- void *value = nullptr;
bool highlight = false;
char *content = nullptr;
};