This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 04/14] Remove tui_data_item_window::value
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 18 Aug 2019 11:27:25 -0600
- Subject: [PATCH 04/14] Remove tui_data_item_window::value
- References: <20190818172735.17477-1-tom@tromey.com>
The field tui_data_item_window::value is not used, so remove it.
gdb/ChangeLog
2019-08-18 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.
---
gdb/ChangeLog | 6 ++++++
gdb/tui/tui-regs.c | 1 -
gdb/tui/tui-regs.h | 1 -
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 9ea6e723644..aebea49effa 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 7b0bb505a8e..d54b556148e 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;
};
--
2.17.2