aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 11:48:26 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 12:57:25 -0700
commit3b0fb49e305511c0f68d588bb8cf1a250ecd76f9 (patch)
tree08bc9c26ba566f3d8f42b130447f6e1986fe888d
parent283be8bfa4c19c60f81abbbb43e41b6ccfdff4a9 (diff)
downloadbinutils-3b0fb49e305511c0f68d588bb8cf1a250ecd76f9.zip
binutils-3b0fb49e305511c0f68d588bb8cf1a250ecd76f9.tar.gz
binutils-3b0fb49e305511c0f68d588bb8cf1a250ecd76f9.tar.bz2
Fix cast in TUI_DISASM_WIN
I noticed that the TUI_DISASM_WIN macro cast the disassembly window to a base type, rather than its correct type. This patch fixes this oversight. 2020-02-22 Tom Tromey <tom@tromey.com> * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. Change-Id: Ied3dbac9ef3dc48ceb9e0850fe4ada3c316dd769
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tui/tui-data.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f45b740..1f604f7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2020-02-22 Tom Tromey <tom@tromey.com>
+ * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
+
+2020-02-22 Tom Tromey <tom@tromey.com>
+
* tui/tui-win.c (_initialize_tui_win): Add usage text.
* tui/tui-stack.c (_initialize_tui_stack): Add usage text.
* tui/tui-regs.c (_initialize_tui_regs): Add usage text.
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 60c588e..2dc73b9 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -29,6 +29,7 @@
struct tui_cmd_window;
struct tui_source_window_base;
struct tui_source_window;
+struct tui_disasm_window;
/* A deleter that calls delwin. */
struct curses_deleter
@@ -229,7 +230,7 @@ public:
extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];
#define TUI_SRC_WIN ((tui_source_window *) tui_win_list[SRC_WIN])
-#define TUI_DISASM_WIN ((tui_source_window_base *) tui_win_list[DISASSEM_WIN])
+#define TUI_DISASM_WIN ((tui_disasm_window *) tui_win_list[DISASSEM_WIN])
#define TUI_DATA_WIN ((tui_data_window *) tui_win_list[DATA_WIN])
#define TUI_CMD_WIN ((tui_cmd_window *) tui_win_list[CMD_WIN])