aboutsummaryrefslogtreecommitdiff
path: root/gdb/completer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/completer.c')
-rw-r--r--gdb/completer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index 63b4cd2..f4b5917 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -1819,11 +1819,7 @@ reg_or_group_completer_1 (completion_tracker &tracker,
if ((targets & complete_reggroup_names) != 0)
{
- struct reggroup *group;
-
- for (group = reggroup_next (gdbarch, NULL);
- group != NULL;
- group = reggroup_next (gdbarch, group))
+ for (const struct reggroup *group : gdbarch_reggroups (gdbarch))
{
name = reggroup_name (group);
if (strncmp (word, name, len) == 0)