Change tui_show_source_content to be a method
authorTom Tromey <tom@tromey.com>
Fri, 5 Jul 2019 23:18:18 +0000 (17:18 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 13 Aug 2019 20:52:09 +0000 (14:52 -0600)
commit0bd27e079a99d93590fd078c86c0afe51f6d29b8
tree82c6857e20b0f781d66633e9f18b52efd2450056
parentb4ef5aeb3a1880490f9441655d9de74727c9063a
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.
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h