diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-03-31 18:10:34 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-07 16:01:18 +0100 |
commit | af7ce09b7685050d2ca1a8a746bb8a8c080fff69 (patch) | |
tree | 7f98b85a0c9b02742561f15e09fb66063b0a439f /gdb/reggroups.c | |
parent | c30c0f062e52b7a827d8571cdafcd04c9e71ab6b (diff) | |
download | fsf-binutils-gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.zip fsf-binutils-gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.tar.gz fsf-binutils-gdb-af7ce09b7685050d2ca1a8a746bb8a8c080fff69.tar.bz2 |
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.
Diffstat (limited to 'gdb/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 643337e..4223281 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -28,33 +28,6 @@ #include "gdbcmd.h" /* For maintenanceprintlist. */ #include "gdbsupport/gdb_obstack.h" -/* Individual register groups. */ - -struct reggroup -{ - /* Create a new register group object. The NAME is not owned by the new - reggroup object, so must outlive the object. */ - reggroup (const char *name, enum reggroup_type type) - : m_name (name), - m_type (type) - { /* Nothing. */ } - - /* Return the name for this register group. */ - const char *name () const - { return m_name; } - - /* Return the type of this register group. */ - enum reggroup_type type () const - { return m_type; } - -private: - /* The name of this register group. */ - const char *m_name; - - /* The type of this register group. */ - enum reggroup_type m_type; -}; - const reggroup * reggroup_new (const char *name, enum reggroup_type type) { @@ -72,20 +45,6 @@ reggroup_gdbarch_new (struct gdbarch *gdbarch, const char *name, name, type); } -/* Register group attributes. */ - -const char * -reggroup_name (const struct reggroup *group) -{ - return group->name (); -} - -enum reggroup_type -reggroup_type (const struct reggroup *group) -{ - return group->type (); -} - /* A container holding all the register groups for a particular architecture. */ |