This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 29/61] Remove UNDEFINED_ITEM define from TUI
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Thu, 4 Jul 2019 11:02:39 -0600
- Subject: [PATCH 29/61] Remove UNDEFINED_ITEM define from TUI
- References: <20190704170311.15982-1-tom@tromey.com>
The TUI defined UNDEFINED_ITEM, but only used it in a single spot. I
think this isn't very useful, so this removes the define.
2019-07-04 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (UNDEFINED_ITEM): Remove define.
(struct tui_data_item_window): Update.
---
gdb/ChangeLog | 5 +++++
gdb/tui/tui-data.h | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 310029d5af1..42ac859e542 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -104,7 +104,6 @@ enum tui_box
#define DISASSEM_NAME "asm"
#define HILITE TRUE
#define NO_HILITE FALSE
-#define UNDEFINED_ITEM -1
#define MIN_WIN_HEIGHT 3
#define MIN_CMD_WIN_HEIGHT 3
@@ -263,7 +262,7 @@ struct tui_data_item_window : public tui_gen_win_info
const char *name = nullptr;
/* The register number, or data display number. */
- int item_no = UNDEFINED_ITEM;
+ int item_no = -1;
void *value = nullptr;
bool highlight = false;
char *content = nullptr;
--
2.17.2