Introduce two more tui_data_window methods
authorTom Tromey <tom@tromey.com>
Wed, 26 Jun 2019 22:13:39 +0000 (16:13 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:59 +0000 (12:18 -0600)
commit517e9505fa563c83b4d5cb192e423a0d6baac752
treebf3b2abd0e001814dc825b3fce8e917afd736a8a
parentf76d8b19e80b43a141ce31c0e0230e23f676182d
Introduce two more tui_data_window methods

This changes tui_display_registers_from and
tui_display_registers_from_line to be methods on tui_data_window,
allowing for the removal of more uses of the TUI_DATA_WIN global.

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

* tui/tui-regs.h (tui_display_registers_from)
(tui_display_registers_from_line): Don't declare.
* tui/tui-windata.c (tui_data_window::display_all_data)
(tui_data_window::refresh_all)
(tui_data_window::do_scroll_vertical): Update.
* tui/tui-regs.c (tui_data_window::display_registers_from): Rename
from tui_display_registers_from.
(tui_display_reg_element_at_line): Update.
(tui_data_window::display_registers_from_line): Rename from
tui_display_registers_from_line.
* tui/tui-data.h (struct tui_data_window) <display_registers_from,
display_registers_from_line>: New methods.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h
gdb/tui/tui-windata.c