aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-source.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-source.h')
-rw-r--r--gdb/tui/tui-source.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h
index 103b11e..9a72ed9 100644
--- a/gdb/tui/tui-source.h
+++ b/gdb/tui/tui-source.h
@@ -82,4 +82,12 @@ private:
gdb::unique_xmalloc_ptr<char> m_fullname;
};
+/* Return the instance of the source window. */
+
+inline tui_source_window *
+tui_src_win ()
+{
+ return gdb::checked_static_cast<tui_source_window *> (tui_win_list[SRC_WIN]);
+}
+
#endif /* TUI_TUI_SOURCE_H */