GNU Binutils with patches for OS216
Revision | 3b0fb49e305511c0f68d588bb8cf1a250ecd76f9 (tree) |
---|---|
Time | 2020-02-23 04:57:25 |
Author | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
4 | + | |
5 | +2020-02-22 Tom Tromey <tom@tromey.com> | |
6 | + | |
3 | 7 | * tui/tui-win.c (_initialize_tui_win): Add usage text. |
4 | 8 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. |
5 | 9 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. |
@@ -29,6 +29,7 @@ | ||
29 | 29 | struct tui_cmd_window; |
30 | 30 | struct tui_source_window_base; |
31 | 31 | struct tui_source_window; |
32 | +struct tui_disasm_window; | |
32 | 33 | |
33 | 34 | /* A deleter that calls delwin. */ |
34 | 35 | struct curses_deleter |
@@ -229,7 +230,7 @@ public: | ||
229 | 230 | extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; |
230 | 231 | |
231 | 232 | #define TUI_SRC_WIN ((tui_source_window *) tui_win_list[SRC_WIN]) |
232 | -#define TUI_DISASM_WIN ((tui_source_window_base *) tui_win_list[DISASSEM_WIN]) | |
233 | +#define TUI_DISASM_WIN ((tui_disasm_window *) tui_win_list[DISASSEM_WIN]) | |
233 | 234 | #define TUI_DATA_WIN ((tui_data_window *) tui_win_list[DATA_WIN]) |
234 | 235 | #define TUI_CMD_WIN ((tui_cmd_window *) tui_win_list[CMD_WIN]) |
235 | 236 |