aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-03-31 12:36:06 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-04-07 16:01:17 +0100
commitdbf5d61bdad9131d31c3410f123db3e296d91dfc (patch)
tree9ef27c372410bd8981fc7e32f43f0d0fddb63485 /gdb/xtensa-tdep.c
parentb5556e33b5cbe101257074c497178df6de293c3e (diff)
downloadfsf-binutils-gdb-dbf5d61bdad9131d31c3410f123db3e296d91dfc.zip
fsf-binutils-gdb-dbf5d61bdad9131d31c3410f123db3e296d91dfc.tar.gz
fsf-binutils-gdb-dbf5d61bdad9131d31c3410f123db3e296d91dfc.tar.bz2
gdb: make gdbarch_register_reggroup_p take a const reggroup *
Change gdbarch_register_reggroup_p to take a 'const struct reggroup *' argument. This requires a change to the gdb/gdbarch-components.py script, regeneration of gdbarch.{c,h}, and then updates to all the architectures that implement this method. There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 203d2e8..62be136 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -755,7 +755,7 @@ xtensa_add_reggroups (struct gdbarch *gdbarch)
}
static int
-xtensa_coprocessor_register_group (struct reggroup *group)
+xtensa_coprocessor_register_group (const struct reggroup *group)
{
int i;
@@ -776,7 +776,7 @@ xtensa_coprocessor_register_group (struct reggroup *group)
static int
xtensa_register_reggroup_p (struct gdbarch *gdbarch,
int regnum,
- struct reggroup *group)
+ const struct reggroup *group)
{
xtensa_gdbarch_tdep *tdep = (xtensa_gdbarch_tdep *) gdbarch_tdep (gdbarch);
xtensa_register_t* reg = &tdep->regmap[regnum];