diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-03-31 16:24:32 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-07 16:01:18 +0100 |
commit | 2b72890eba0373fee1e5c6f6ac0157782222ef3d (patch) | |
tree | 10da945ba80938d6303243732eb1109ac9761eeb /gdb/reggroups.c | |
parent | 0ee336595924558bde5486becd83a9e4c40059ed (diff) | |
download | gdb-2b72890eba0373fee1e5c6f6ac0157782222ef3d.zip gdb-2b72890eba0373fee1e5c6f6ac0157782222ef3d.tar.gz gdb-2b72890eba0373fee1e5c6f6ac0157782222ef3d.tar.bz2 |
gdb: have reggroup_find return a const
Update reggroup_find to return a const reggroup *.
There are other function in gdb/reggroup.{c,h} files that could
benefit from returning const, these will be updated in later commits.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/reggroups.c')
-rw-r--r-- | gdb/reggroups.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c index d5a263f..6c38ca7 100644 --- a/gdb/reggroups.c +++ b/gdb/reggroups.c @@ -219,7 +219,7 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum, /* See reggroups.h. */ -reggroup * +const reggroup * reggroup_find (struct gdbarch *gdbarch, const char *name) { struct reggroup *group; |