aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache-dump.c')
-rw-r--r--gdb/regcache-dump.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/regcache-dump.c b/gdb/regcache-dump.c
index 2a25785..409a868 100644
--- a/gdb/regcache-dump.c
+++ b/gdb/regcache-dump.c
@@ -192,11 +192,7 @@ protected:
else
{
const char *sep = "";
- struct reggroup *group;
-
- for (group = reggroup_next (m_gdbarch, NULL);
- group != NULL;
- group = reggroup_next (m_gdbarch, group))
+ for (const struct reggroup *group : gdbarch_reggroups (m_gdbarch))
{
if (gdbarch_register_reggroup_p (m_gdbarch, regnum, group))
{