Introduce tui_data_window::delete_data_content_windows method
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 22:04:37 +0000 (16:04 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:58 +0000 (12:18 -0600)
commitb4094625d8a3e2b528032e2ca8d8cdecf222bb7c
tree3b5f81583eddc551a0583d5327e357e7b3b93a78
parentc223a7299e2bdb604d7006842eda7165bcbf2c15
Introduce tui_data_window::delete_data_content_windows method

This changes tui_delete_data_content_windows to be a method on
tui_data_window, removing some uses of the TUI_DATA_WIN global.

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-windata.h (tui_delete_data_content_windows): Don't
declare.
* tui/tui-windata.c
(tui_data_window::delete_data_content_windows): Rename from
tui_delete_data_content_windows.
(tui_data_window::display_all_data)
(tui_data_window::do_scroll_vertical): Update.
* tui/tui-data.h (struct tui_data_window)
<delete_data_content_windows>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-windata.c
gdb/tui/tui-windata.h