Introduce the refresh method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 20:27:28 +0000 (14:27 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:33 +0000 (07:48 -0600)
commit2042b506c85274b4c652fbc9291be65b2550104d
tree4ce0d7619ac9c86214b93bf7a7a73d3c4fcde801
parent56122977c04496325ca9d83231e7751ab94d6b14
Introduce the refresh method

This adds tui_win_info::refresh and updates tui_source_window_base to
implement it as well.  This lets us simplify tui_refresh_all, removing
a check of the window type.

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

* tui/tui-wingeneral.c (tui_win_info::refresh)
(tui_source_window_base::refresh): New methods.
(tui_refresh_all): Call the refresh method.
* tui/tui-data.h (struct tui_win_info)
(struct tui_source_window_base) <refresh>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-wingeneral.c