diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-05 17:18:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:09 -0600 |
commit | 0bd27e079a99d93590fd078c86c0afe51f6d29b8 (patch) | |
tree | 82c6857e20b0f781d66633e9f18b52efd2450056 /gdb/tui/tui-winsource.h | |
parent | b4ef5aeb3a1880490f9441655d9de74727c9063a (diff) | |
download | gdb-0bd27e079a99d93590fd078c86c0afe51f6d29b8.zip gdb-0bd27e079a99d93590fd078c86c0afe51f6d29b8.tar.gz gdb-0bd27e079a99d93590fd078c86c0afe51f6d29b8.tar.bz2 |
Change tui_show_source_content to be a method
This changes tui_show_source_content to be a method on
tui_source_window_base.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (struct tui_source_window_base)
<show_source_content>: Declare.
(tui_show_source_content): Don't declare.
* tui/tui-winsource.c (tui_update_source_window_as_is): Update.
(tui_source_window_base::show_source_content): Rename from
tui_show_source_content.
(tui_source_window_base::refresh_all): Update.
* tui/tui-layout.c (show_source_disasm_command)
(show_source_or_disasm_and_command): Update.
Diffstat (limited to 'gdb/tui/tui-winsource.h')
-rw-r--r-- | gdb/tui/tui-winsource.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index 9d7f0a7..8c76322 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -89,6 +89,8 @@ public: void reset (int height, int width, int origin_x, int origin_y) override; + void show_source_content (); + /* Does the locator belong to this window? */ bool m_has_locator = false; /* Execution information window. */ @@ -139,7 +141,6 @@ extern void tui_update_source_windows_with_line (struct symtab *, int); extern void tui_clear_source_content (struct tui_source_window_base *); extern void tui_erase_source_content (struct tui_source_window_base *); -extern void tui_show_source_content (struct tui_source_window_base *); extern void tui_set_exec_info_content (struct tui_source_window_base *); extern void tui_show_exec_info_content (struct tui_source_window_base *); extern void tui_erase_exec_info_content (struct tui_source_window_base *); |