diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-05-30 15:51:40 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-05-30 16:05:56 -0400 |
commit | 4a7d71687676a1c36326e71f0a783fccb8748127 (patch) | |
tree | c0b009bd0695a14c0bb5a170e59ecaef72cd0bbe /gdb/tui/tui-data.h | |
parent | e2fbb7149660e6f3318ea768dee7adb340a166f0 (diff) | |
download | fsf-binutils-gdb-4a7d71687676a1c36326e71f0a783fccb8748127.zip fsf-binutils-gdb-4a7d71687676a1c36326e71f0a783fccb8748127.tar.gz fsf-binutils-gdb-4a7d71687676a1c36326e71f0a783fccb8748127.tar.bz2 |
gdb/tui: change some macros to functions
Change the `TUI_*` macros to access known windows to functions. Define
them in their respective files, because trying to define them in
tui-data.h would end up causing include cycles.
Change-Id: I1e38cee843984c48ab34030b19dac0d726f851af
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r-- | gdb/tui/tui-data.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 3d9e934..d1c8554 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -290,17 +290,6 @@ struct tui_always_visible_window : public virtual tui_win_info /* Global Data. */ extern struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; -#define TUI_SRC_WIN \ - (gdb::checked_static_cast<tui_source_window *> (tui_win_list[SRC_WIN])) -#define TUI_DISASM_WIN \ - (gdb::checked_static_cast<tui_disasm_window *> (tui_win_list[DISASSEM_WIN])) -#define TUI_DATA_WIN \ - (gdb::checked_static_cast<tui_data_window *> (tui_win_list[DATA_WIN])) -#define TUI_CMD_WIN \ - (dynamic_cast<tui_cmd_window *> (tui_win_list[CMD_WIN])) -#define TUI_STATUS_WIN \ - (dynamic_cast<tui_status_window *> (tui_win_list[STATUS_WIN])) - /* All the windows that are currently instantiated, in layout order. */ extern std::vector<tui_win_info *> tui_windows; |