aboutsummaryrefslogtreecommitdiff
path: root/gdb/reggroups.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/reggroups.h
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/reggroups.h')
-rw-r--r--gdb/reggroups.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/reggroups.h b/gdb/reggroups.h
index e4d9763..329c808 100644
--- a/gdb/reggroups.h
+++ b/gdb/reggroups.h
@@ -25,7 +25,8 @@
struct gdbarch;
/* The different register group types. */
-enum reggroup_type {
+enum reggroup_type
+{
/* Used for any register group that should be visible to the user.
Architecture specific register groups, as well as most of the default
groups will have this type. */
@@ -45,17 +46,17 @@ struct reggroup
reggroup (const char *name, enum reggroup_type type)
: m_name (name),
m_type (type)
- { /* Nothing. */ }
+ { /* Nothing. */
+ }
/* Return the name for this register group. */
- const char *name () const
- { return m_name; }
+ const char *name () const { return m_name; }
/* Return the type of this register group. */
- enum reggroup_type type () const
- { return m_type; }
+ enum reggroup_type type () const { return m_type; }
private:
+
/* The name of this register group. */
const char *m_name;
@@ -88,7 +89,7 @@ extern void reggroup_add (struct gdbarch *gdbarch, const reggroup *group);
/* Return the list of all register groups for GDBARCH. */
extern const std::vector<const reggroup *> &
- gdbarch_reggroups (struct gdbarch *gdbarch);
+gdbarch_reggroups (struct gdbarch *gdbarch);
/* Find a reggroup by name. */
extern const reggroup *reggroup_find (struct gdbarch *gdbarch,