mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +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:
@ -219,7 +219,7 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
|
|||||||
|
|
||||||
/* See reggroups.h. */
|
/* See reggroups.h. */
|
||||||
|
|
||||||
reggroup *
|
const reggroup *
|
||||||
reggroup_find (struct gdbarch *gdbarch, const char *name)
|
reggroup_find (struct gdbarch *gdbarch, const char *name)
|
||||||
{
|
{
|
||||||
struct reggroup *group;
|
struct reggroup *group;
|
||||||
|
@ -62,7 +62,8 @@ extern struct reggroup *reggroup_next (struct gdbarch *gdbarch,
|
|||||||
extern struct reggroup *reggroup_prev (struct gdbarch *gdbarch,
|
extern struct reggroup *reggroup_prev (struct gdbarch *gdbarch,
|
||||||
const struct reggroup *curr);
|
const struct reggroup *curr);
|
||||||
/* Find a reggroup by name. */
|
/* 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? */
|
/* Is REGNUM a member of REGGROUP? */
|
||||||
extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
|
extern int default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
|
||||||
|
Reference in New Issue
Block a user