diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-03-31 18:10:34 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-07 16:01:18 +0100 |
commit | af7ce09b7685050d2ca1a8a746bb8a8c080fff69 (patch) | |
tree | 7f98b85a0c9b02742561f15e09fb66063b0a439f /gdb/tui | |
parent | c30c0f062e52b7a827d8571cdafcd04c9e71ab6b (diff) | |
download | gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.zip gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.tar.gz gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.tar.bz2 |
gdb: move struct reggroup into reggroups.h header
Move 'struct reggroup' into the reggroups.h header. Remove the
reggroup_name and reggroup_type accessor functions, and just use the
name/type member functions within 'struct reggroup', update all uses
of these removed functions.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-regs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 2e597d0..5106a3b 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -216,7 +216,7 @@ tui_data_window::show_register_group (const reggroup *group, int regnum, pos; /* Make a new title showing which group we display. */ - title = string_printf ("Register group: %s", reggroup_name (group)); + title = string_printf ("Register group: %s", group->name ()); /* See how many registers must be displayed. */ nr_regs = 0; @@ -595,7 +595,7 @@ tui_reg_command (const char *args, int from_tty) group then the switch is made. */ for (const struct reggroup *group : gdbarch_reggroups (gdbarch)) { - if (strncmp (reggroup_name (group), args, len) == 0) + if (strncmp (group->name (), args, len) == 0) { if (match != NULL) error (_("ambiguous register group name '%s'"), args); @@ -621,7 +621,7 @@ tui_reg_command (const char *args, int from_tty) if (!first) gdb_printf (", "); first = false; - gdb_printf ("%s", reggroup_name (group)); + gdb_printf ("%s", group->name ()); } gdb_printf ("\n"); |