From 4a7d71687676a1c36326e71f0a783fccb8748127 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 30 May 2024 15:51:40 -0400 Subject: 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 --- gdb/tui/tui-data.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gdb/tui/tui-data.h') 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_win_list[SRC_WIN])) -#define TUI_DISASM_WIN \ - (gdb::checked_static_cast (tui_win_list[DISASSEM_WIN])) -#define TUI_DATA_WIN \ - (gdb::checked_static_cast (tui_win_list[DATA_WIN])) -#define TUI_CMD_WIN \ - (dynamic_cast (tui_win_list[CMD_WIN])) -#define TUI_STATUS_WIN \ - (dynamic_cast (tui_win_list[STATUS_WIN])) - /* All the windows that are currently instantiated, in layout order. */ extern std::vector tui_windows; -- cgit v1.1