Introduce the refresh_all method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 20:52:08 +0000 (14:52 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:34 +0000 (07:48 -0600)
commit1825f487ae903438eb2a9b6f461337d8ec1b06c0
treead8848b326dff919ab0ae05d62a9e9e9a62d4515
parentad54d15bdb71b05010ece1ef32ab22ab46794166
Introduce the refresh_all method

This introduces the tui_win_info::refresh_all method and implements it
as needed in subclasses.  The name and comment are a bit of a guess on
my part.  The main benefit of this patch is removing another switch on
the type of the window.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui.c (tui_rl_other_window): Call the refresh_all method.
* tui/tui-windata.c (tui_data_window::refresh_all): Rename from
tui_refresh_data_win.
* tui/tui-win.c (tui_source_window_base::refresh_all): New
method.
(tui_refresh_all_win): Call the refresh_all method.
(tui_set_focus): Likewise.
* tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
(struct tui_source_window_base, struct tui_data_window) <refresh>:
Likewise.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-win.c
gdb/tui/tui-windata.c
gdb/tui/tui.c