diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-18 14:01:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-30 12:57:07 -0600 |
commit | e594a5d19e855cf19a89dab29196d13f53ced7da (patch) | |
tree | 6079bc2a7ca0f9fcb3da9c8e061cfe1c0d76b931 /gdb/tui/tui-stack.h | |
parent | 715bb467feab6e94e01bdf4f5aced092df7398c0 (diff) | |
download | gdb-e594a5d19e855cf19a89dab29196d13f53ced7da.zip gdb-e594a5d19e855cf19a89dab29196d13f53ced7da.tar.gz gdb-e594a5d19e855cf19a89dab29196d13f53ced7da.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui/tui-stack.h')
-rw-r--r-- | gdb/tui/tui-stack.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/tui/tui-stack.h b/gdb/tui/tui-stack.h index 951cf2c..86239b0 100644 --- a/gdb/tui/tui-stack.h +++ b/gdb/tui/tui-stack.h @@ -45,6 +45,18 @@ struct tui_locator_window : public tui_gen_win_info void rerender () override; + /* Update the locator, with the provided arguments. + + Returns true if any of the locator's fields were actually + changed, and false otherwise. */ + bool set_locator_info (struct gdbarch *gdbarch, + const char *fullname, + const char *procname, + int lineno, CORE_ADDR addr); + + /* Set the full_name portion of the locator. */ + void set_locator_fullname (const char *fullname); + char full_name[MAX_LOCATOR_ELEMENT_LEN]; char proc_name[MAX_LOCATOR_ELEMENT_LEN]; int line_no = 0; |