Turn two locator functions into methods
authorTom Tromey <tom@tromey.com>
Thu, 18 Jul 2019 20:01:56 +0000 (14:01 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 30 Aug 2019 18:57:07 +0000 (12:57 -0600)
commite594a5d19e855cf19a89dab29196d13f53ced7da
tree6079bc2a7ca0f9fcb3da9c8e061cfe1c0d76b931
parent715bb467feab6e94e01bdf4f5aced092df7398c0
Turn two locator functions into methods

This changes tui_set_locator_fullname and tui_set_locator_info to be
methods on tui_locator_window.  This enables some subsequent
cleannups.

gdb/ChangeLog
2019-08-30  Tom Tromey  <tom@tromey.com>

* tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
set_locator_fullname>: New methods.
* tui/tui-stack.c (tui_locator_window::set_locator_fullname):
Rename from tui_set_locator_fullname.
(tui_locator_window::set_locator_info): Rename from
tui_set_locator_info.  Return bool.
(tui_update_locator_fullname, tui_show_frame_info): Update.
gdb/ChangeLog
gdb/tui/tui-stack.c
gdb/tui/tui-stack.h