diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-05-30 22:54:05 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-06-07 22:52:54 -0400 |
commit | 8a39a981bd8d576de0d343b8c2eee47655d8c720 (patch) | |
tree | d0d36339b4cdf19b9a2a05ba9aa6fd862fa5a2d1 /gdb/tui/tui-status.c | |
parent | b56d975cc8083e49c35be3a35faf1744da54fabc (diff) | |
download | gdb-8a39a981bd8d576de0d343b8c2eee47655d8c720.zip gdb-8a39a981bd8d576de0d343b8c2eee47655d8c720.tar.gz gdb-8a39a981bd8d576de0d343b8c2eee47655d8c720.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.
This makes static analysis (detection of unused include files in this
case) more accurate, and I think in general we should avoid hiding
code behind macros if not necessary.
Change-Id: I1e38cee843984c48ab34030b19dac0d726f851af
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/tui/tui-status.c')
-rw-r--r-- | gdb/tui/tui-status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-status.c b/gdb/tui/tui-status.c index c7750af..de754cb 100644 --- a/gdb/tui/tui-status.c +++ b/gdb/tui/tui-status.c @@ -315,7 +315,7 @@ void tui_show_status_content () { if (tui_is_window_visible (STATUS_WIN)) - TUI_STATUS_WIN->rerender (); + tui_status_win ()->rerender (); } /* Command to update the display with the current execution point. */ |