diff options
author | Tom Tromey <tom@tromey.com> | 2023-12-17 12:32:28 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-02-08 12:16:07 -0700 |
commit | 09df3a10d942e4bcce40a03e4668a287fe4297fa (patch) | |
tree | aa283363c117222bcede2b15aafb1d1125b7390a | |
parent | 59468aadf4b6af391723bef81ca7ca088b97e275 (diff) | |
download | gdb-09df3a10d942e4bcce40a03e4668a287fe4297fa.zip gdb-09df3a10d942e4bcce40a03e4668a287fe4297fa.tar.gz gdb-09df3a10d942e4bcce40a03e4668a287fe4297fa.tar.bz2 |
Rename show_registers -> set_register_group
This renames a method on the TUI register window to reflect its real
purpose.
Tested-By: Tom de Vries <tdevries@suse.de>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
-rw-r--r-- | gdb/tui/tui-regs.c | 6 | ||||
-rw-r--r-- | gdb/tui/tui-regs.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 10d9bc6..fa4d10d 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -164,7 +164,7 @@ tui_data_window::first_reg_element_no_inline (int line_no) const /* Show the registers of the given group in the data window and refresh the window. */ void -tui_data_window::show_registers (const reggroup *group) +tui_data_window::set_register_group (const reggroup *group) { update_register_data (group); rerender (); @@ -404,7 +404,7 @@ void tui_data_window::check_register_values (frame_info_ptr frame) { if (m_regs_content.empty ()) - show_registers (m_current_group); + set_register_group (m_current_group); else { for (tui_register_info &data_item_win : m_regs_content) @@ -542,7 +542,7 @@ tui_reg_command (const char *args, int from_tty) if (match == NULL) error (_("unknown register group '%s'"), args); - TUI_DATA_WIN->show_registers (match); + TUI_DATA_WIN->set_register_group (match); } else { diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index 880f360..caa9d39 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -76,7 +76,7 @@ struct tui_data_window : public tui_win_info void check_register_values (frame_info_ptr frame); - void show_registers (const reggroup *group); + void set_register_group (const reggroup *group); const reggroup *get_current_group () const { |