#include "gdbcmd.h" /* For maintenanceprintlist. */
#include "gdbsupport/gdb_obstack.h"
+/* See reggroups.h. */
+
const reggroup *
reggroup_new (const char *name, enum reggroup_type type)
{
std::vector<const struct reggroup *> m_groups;
};
+/* Key used to lookup register group data from a gdbarch. */
+
static struct gdbarch_data *reggroups_data;
-/* Add GROUP to the list of register groups for GDBARCH. */
+/* See reggroups.h. */
void
reggroup_add (struct gdbarch *gdbarch, const reggroup *group)
return groups->groups ();
}
-/* Is REGNUM a member of REGGROUP? */
+/* See reggroups.h. */
+
int
default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
const struct reggroup *group)
}
}
+/* Implement 'maintenance print reggroups' command. */
+
static void
maintenance_print_reggroups (const char *args, int from_tty)
{