mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-28 04:25:10 +08:00
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.
This commit is contained in:
parent
0ee3365959
commit
2b72890eba
@ -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;
|
||||
|
@ -62,7 +62,8 @@ extern struct reggroup *reggroup_next (struct gdbarch *gdbarch,
|
||||
extern struct reggroup *reggroup_prev (struct gdbarch *gdbarch,
|
||||
const struct reggroup *curr);
|
||||
/* Find a reggroup by name. */
|
||||
extern reggroup *reggroup_find (struct gdbarch *gdbarch, const char *name);
|
||||
extern const reggroup *reggroup_find (struct gdbarch *gdbarch,
|
||||
const char *name);
|
||||
|
||||
/* Is REGNUM a member of REGGROUP? */
|
||||
extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
|
||||
|
Loading…
Reference in New Issue
Block a user