• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision3b0fb49e305511c0f68d588bb8cf1a250ecd76f9 (tree)
Time2020-02-23 04:57:25
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

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

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
11 2020-02-22 Tom Tromey <tom@tromey.com>
22
3+ * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
4+
5+2020-02-22 Tom Tromey <tom@tromey.com>
6+
37 * tui/tui-win.c (_initialize_tui_win): Add usage text.
48 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
59 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -29,6 +29,7 @@
2929 struct tui_cmd_window;
3030 struct tui_source_window_base;
3131 struct tui_source_window;
32+struct tui_disasm_window;
3233
3334 /* A deleter that calls delwin. */
3435 struct curses_deleter
@@ -229,7 +230,7 @@ public:
229230 extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS];
230231
231232 #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])
233234 #define TUI_DATA_WIN ((tui_data_window *) tui_win_list[DATA_WIN])
234235 #define TUI_CMD_WIN ((tui_cmd_window *) tui_win_list[CMD_WIN])
235236