diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-03-31 18:19:23 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-07 16:01:18 +0100 |
commit | 524ad5e30fb66ee2f03547b2d9f5c67bccdc8534 (patch) | |
tree | 5eae19cafa88b278e0203447e045ac6bae122dba /gdb/reggroups.c | |
parent | af7ce09b7685050d2ca1a8a746bb8a8c080fff69 (diff) | |
download | fsf-binutils-gdb-524ad5e30fb66ee2f03547b2d9f5c67bccdc8534.zip fsf-binutils-gdb-524ad5e30fb66ee2f03547b2d9f5c67bccdc8534.tar.gz fsf-binutils-gdb-524ad5e30fb66ee2f03547b2d9f5c67bccdc8534.tar.bz2 |
gdb: update comments throughout reggroups.{c,h} files
This commit updates the comments in the gdb/reggroups.{c,h} files.
Fill in some missing comments, correct a few comments that were not
clear, and where we had comments duplicated between .c and .h files,
update the .c to reference the .h.
No user visible changes after this commit.
Diffstat (limited to 'gdb/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index 4223281..1a13cb2 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -28,6 +28,8 @@ #include "gdbcmd.h" /* For maintenanceprintlist. */ #include "gdbsupport/gdb_obstack.h" +/* See reggroups.h. */ + const reggroup * reggroup_new (const char *name, enum reggroup_type type) { @@ -82,9 +84,11 @@ private: 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) @@ -128,7 +132,8 @@ gdbarch_reggroups (struct gdbarch *gdbarch) 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) @@ -207,6 +212,8 @@ reggroups_dump (struct gdbarch *gdbarch, struct ui_file *file) } } +/* Implement 'maintenance print reggroups' command. */ + static void maintenance_print_reggroups (const char *args, int from_tty) { |