aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r--gdb/tui/tui-win.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index 45cc22a..f43ead8 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -203,10 +203,10 @@ static void
set_style_tui_current_position (const char *ignore, int from_tty,
cmd_list_element *c)
{
- if (TUI_SRC_WIN != nullptr)
- TUI_SRC_WIN->refill ();
- if (TUI_DISASM_WIN != nullptr)
- TUI_DISASM_WIN->refill ();
+ if (tui_src_win () != nullptr)
+ tui_src_win ()->refill ();
+ if (tui_disasm_win () != nullptr)
+ tui_disasm_win ()->refill ();
}
/* Tui internal configuration variables. These variables are updated
@@ -424,8 +424,8 @@ tui_update_gdb_sizes (void)
if (tui_active)
{
- width = TUI_CMD_WIN->width;
- height = TUI_CMD_WIN->height;
+ width = tui_cmd_win ()->width;
+ height = tui_cmd_win ()->height;
}
else
{
@@ -513,7 +513,7 @@ tui_resize_all (void)
resize_term (screenheight, screenwidth);
#endif
/* Turn keypad off while we resize. */
- keypad (TUI_CMD_WIN->handle.get (), FALSE);
+ keypad (tui_cmd_win ()->handle.get (), FALSE);
tui_update_gdb_sizes ();
tui_set_term_height_to (screenheight);
tui_set_term_width_to (screenwidth);
@@ -526,7 +526,7 @@ tui_resize_all (void)
window to resize proportionately with containing terminal, rather
than maintaining a fixed size. */
tui_apply_current_layout (false); /* Turn keypad back on. */
- keypad (TUI_CMD_WIN->handle.get (), TRUE);
+ keypad (tui_cmd_win ()->handle.get (), TRUE);
}
}
@@ -862,8 +862,8 @@ static void
tui_set_compact_source (const char *ignore, int from_tty,
struct cmd_list_element *c)
{
- if (TUI_SRC_WIN != nullptr)
- TUI_SRC_WIN->refill ();
+ if (tui_src_win () != nullptr)
+ tui_src_win ()->refill ();
}
/* Callback for "show tui compact-source". */
@@ -1081,7 +1081,7 @@ parse_scrolling_args (const char *arg,
error (_("Unrecognized window `%s'"), wname);
if (!(*win_to_scroll)->is_visible ())
error (_("Window is not visible"));
- else if (*win_to_scroll == TUI_CMD_WIN)
+ else if (*win_to_scroll == tui_cmd_win ())
*win_to_scroll = *(tui_source_windows ().begin ());
}
}