aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-disasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-disasm.h')
-rw-r--r--gdb/tui/tui-disasm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/tui/tui-disasm.h b/gdb/tui/tui-disasm.h
index 0aef091..4a77354 100644
--- a/gdb/tui/tui-disasm.h
+++ b/gdb/tui/tui-disasm.h
@@ -64,6 +64,15 @@ private:
bool addr_is_displayed (CORE_ADDR addr) const;
};
+/* Return the instance of the disassembly windows. */
+
+inline tui_disasm_window *
+tui_disasm_win ()
+{
+ return gdb::checked_static_cast<tui_disasm_window *>
+ (tui_win_list[DISASSEM_WIN]);
+}
+
extern void tui_get_begin_asm_address (struct gdbarch **, CORE_ADDR *);
#endif /* TUI_TUI_DISASM_H */