diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-11 20:00:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-16 11:28:34 -0600 |
commit | bb01dbfc041dccab2f2a2818068158f61b4c0fe2 (patch) | |
tree | 01be029c4f8b19808e0445c24ca961e0fb987ced /gdb/tui/tui-source.h | |
parent | 81c82c4b9005acf7865d8a19ee651968e059a848 (diff) | |
download | gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.zip gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.tar.gz gdb-bb01dbfc041dccab2f2a2818068158f61b4c0fe2.tar.bz2 |
Change tui_show_symtab_source to be a method
This changes tui_show_symtab_source to be a method on
tui_source_window.
gdb/ChangeLog
2019-08-16 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_update_source_windows_with_addr)
(tui_update_source_windows_with_line): Update.
* tui/tui-source.h (struct tui_source_window)
<show_symtab_source>: Declare.
(tui_show_symtab_source): Don't declare.
* tui/tui-source.c (tui_show_symtab_source): Rename from
tui_show_symtab_source.
Diffstat (limited to 'gdb/tui/tui-source.h')
-rw-r--r-- | gdb/tui/tui-source.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h index c623f5e..9c30136 100644 --- a/gdb/tui/tui-source.h +++ b/gdb/tui/tui-source.h @@ -56,6 +56,9 @@ struct tui_source_window : public tui_source_window_base do_erase_source_content (NO_SRC_STRING); } + void show_symtab_source (struct gdbarch *, struct symtab *, + struct tui_line_or_address); + protected: void do_scroll_vertical (int num_to_scroll) override; @@ -77,8 +80,4 @@ private: gdb::observers::token m_observable; }; -extern void tui_show_symtab_source (tui_source_window_base *, - struct gdbarch *, struct symtab *, - struct tui_line_or_address); - #endif /* TUI_TUI_SOURCE_H */ |