diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-11 18:42:20 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-16 11:28:34 -0600 |
commit | 81c82c4b9005acf7865d8a19ee651968e059a848 (patch) | |
tree | d6f82f453c5379aa365fe38ed3643f524b3cd572 /gdb/tui/tui-disasm.h | |
parent | 2ddaf614439b50e6019c5218f2fbfc0d14194e96 (diff) | |
download | gdb-81c82c4b9005acf7865d8a19ee651968e059a848.zip gdb-81c82c4b9005acf7865d8a19ee651968e059a848.tar.gz gdb-81c82c4b9005acf7865d8a19ee651968e059a848.tar.bz2 |
Introduce tui_source_window_base::set_contents method
This introduces the tui_source_window_base::set_contents method and
implements it in the subclasses. This removes a check of the window
type.
gdb/ChangeLog
2019-08-16 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (struct tui_source_window_base)
<set_contents>: Declare.
* tui/tui-winsource.c
(tui_source_window_base::update_source_window_as_is): Update.
* tui/tui-source.h (struct tui_source_window) <set_contents>:
Declare.
(tui_set_source_content): Don't declare.
* tui/tui-source.c (tui_source_window::set_contents): Rename from
tui_set_source_content.
* tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
Declare.
(tui_set_disassem_content): Don't declare.
* tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
tui_set_disassem_content.
Diffstat (limited to 'gdb/tui/tui-disasm.h')
-rw-r--r-- | gdb/tui/tui-disasm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/tui/tui-disasm.h b/gdb/tui/tui-disasm.h index 0ebe42a..d989532 100644 --- a/gdb/tui/tui-disasm.h +++ b/gdb/tui/tui-disasm.h @@ -57,14 +57,17 @@ protected: void do_scroll_vertical (int num_to_scroll) override; + enum tui_status set_contents + (struct gdbarch *gdbarch, + struct symtab *s, + struct tui_line_or_address line_or_addr) override; + private: /* Answer whether a particular line number or address is displayed in the current source window. */ bool addr_is_displayed (CORE_ADDR addr) const; }; -extern enum tui_status tui_set_disassem_content (tui_source_window_base *, - struct gdbarch *, CORE_ADDR); extern void tui_show_disassem (struct gdbarch *, CORE_ADDR); extern void tui_show_disassem_and_update_source (struct gdbarch *, CORE_ADDR); extern void tui_get_begin_asm_address (struct gdbarch **, CORE_ADDR *); |