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.
This commit is contained in:
Andrew Burgess 2022-03-31 18:10:34 +01:00
parent c30c0f062e
commit af7ce09b76
9 changed files with 36 additions and 57 deletions

View file

@ -136,8 +136,7 @@ gdbpy_reggroup_to_string (PyObject *self)
reggroup_object *group = (reggroup_object *) self;
const reggroup *reggroup = group->reggroup;
const char *name = reggroup_name (reggroup);
return PyUnicode_FromString (name);
return PyUnicode_FromString (reggroup->name ());
}
/* Implement gdb.RegisterGroup.name (self) -> String.