Introduce tui_win_info::clear_detail method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 16:42:09 +0000 (10:42 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:26 +0000 (07:48 -0600)
commit8761a91b2614304963bfe211ff8c682c7eba3b51
tree5407f564c3d3788c0f9e491cbdc2e5b4f0a0da2e
parent0ed69edaab683b9290a05962faa50d970facfa84
Introduce tui_win_info::clear_detail method

This introduces the clear_detail method and updates the various
subclasses of tui_win_info to implement it.  A subsequent patch will
remove tui_clear_win_detail, but that isn't done for now because at
this point it isn't readily obvious that the NULL check is not needed.

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

* tui/tui-data.h (struct tui_win_info, struct tui_source_window)
(struct tui_data_window, struct tui_cmd_window): Declare
clear_detail method.
* tui/tui-data.c (tui_source_window::clear_detail)
(tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
methods.
(tui_clear_win_detail): Simplify.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h