From: Tom Tromey Date: Sat, 29 Jun 2019 04:51:20 +0000 (-0600) Subject: Remove UNDEFINED_ITEM define from TUI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1b6f1e5ebdd755274a77a31c4afa48969b73bee;p=binutils-gdb.git Remove UNDEFINED_ITEM define from TUI 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. gdb/ChangeLog 2019-07-17 Tom Tromey * tui/tui-data.h (UNDEFINED_ITEM): Remove define. (struct tui_data_item_window): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0a4fd6abe9..ee17d503b13 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-07-17 Tom Tromey + + * tui/tui-data.h (UNDEFINED_ITEM): Remove define. + (struct tui_data_item_window): Update. + 2019-07-17 Tom Tromey * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR) diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index de52215dc16..125b4ae4c5d 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;