This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 24/24] Fix cast in TUI_DISASM_WIN
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sat, 4 Jan 2020 11:34:10 -0700
- Subject: [PATCH 24/24] Fix cast in TUI_DISASM_WIN
- References: <20200104183410.17114-1-tom@tromey.com>
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-01-04 Tom Tromey <tom@tromey.com>
* tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
Change-Id: Ied3dbac9ef3dc48ceb9e0850fe4ada3c316dd769
---
gdb/ChangeLog | 4 ++++
gdb/tui/tui-data.h | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 0583c4a5c99..7f68b1c4219 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
@@ -222,7 +223,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])
--
2.17.2