projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR29262, memory leak in pr_function_type
[binutils-gdb.git]
/
gdb
/
regcache-dump.c
diff --git
a/gdb/regcache-dump.c
b/gdb/regcache-dump.c
index 2a2578558f70b2474d7e08801e40a551319a4f6c..0c5da0e241d259a78a3c526fa21d1dd5491e63ee 100644
(file)
--- a/
gdb/regcache-dump.c
+++ b/
gdb/regcache-dump.c
@@
-192,16
+192,11
@@
protected:
else
{
const char *sep = "";
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))
{
{
if (gdbarch_register_reggroup_p (m_gdbarch, regnum, group))
{
- gdb_printf (file,
- "%s%s", sep, reggroup_name (group));
+ gdb_printf (file, "%s%s", sep, group->name ());
sep = ",";
}
}
sep = ",";
}
}