Change tui_check_register_values to be a method
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 22:15:30 +0000 (16:15 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Aug 2019 22:45:50 +0000 (16:45 -0600)
commit63356bfda1603f67db865dceff5a3a4d028c9d5a
tree39a4788928f543c183f41e3ab5226db42ef7694a
parent42cc14a753e6edbcd43cdaa2dc2ee614a27aeeb2
Change tui_check_register_values to be a method

This changes tui_check_register_values to be a method on
tui_data_window.  An additional check in tui_register_changed is
needed, because TUI_DATA_WIN could be NULL at this point.

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

* tui/tui-regs.h (struct tui_data_window) <check_register_values>:
Declare.
(tui_check_register_values): Don't declare.
* tui/tui-regs.c (tui_data_window::check_register_values): Rename
from tui_check_register_values.
* tui/tui-hooks.c (tui_register_changed): Update.
gdb/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h