diff options
Diffstat (limited to 'gdb/tui/tui-regs.h')
-rw-r--r-- | gdb/tui/tui-regs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index 07b9513..4a799e6 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -145,4 +145,12 @@ private: gdbarch *m_gdbarch = nullptr; }; +/* Return the instance of the registers window. */ + +inline tui_data_window * +tui_data_win () +{ + return gdb::checked_static_cast<tui_data_window *> (tui_win_list[DATA_WIN]); +} + #endif /* TUI_TUI_REGS_H */ |