aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-command.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-command.h')
-rw-r--r--gdb/tui/tui-command.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/tui/tui-command.h b/gdb/tui/tui-command.h
index 2dc579b..90b8de7 100644
--- a/gdb/tui/tui-command.h
+++ b/gdb/tui/tui-command.h
@@ -55,6 +55,14 @@ struct tui_cmd_window
int start_line = 0;
};
+/* Return the instance of the command windows. */
+
+inline tui_cmd_window *
+tui_cmd_win ()
+{
+ return dynamic_cast<tui_cmd_window *> (tui_win_list[CMD_WIN]);
+}
+
/* Refresh the command window. */
extern void tui_refresh_cmd_win (void);