Add two methods to tui_data_window
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 22:19:11 +0000 (16:19 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Aug 2019 22:45:50 +0000 (16:45 -0600)
commitca02d7c8003ad020bb39f0b26dc93b661be67132
tree37d9d05085c631d4dcbdd4799a1e89b113169181
parent63356bfda1603f67db865dceff5a3a4d028c9d5a
Add two methods to tui_data_window

This changes tui_show_registers and tui_show_register_group to be
methods on tui_data_window.

2019-08-20  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.h (struct tui_data_window) <show_registers,
show_register_group>: Declare.
(tui_show_register_group): Don't declare.
* tui/tui-regs.c (tui_data_window::show_registers): Rename from
tui_show_registers.
(tui_data_window::show_register_group): Rename from
tui_show_register_group.
(tui_data_window::check_register_values, tui_reg_command):
Update.
* tui/tui-layout.c (tui_set_layout): Update.
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h