diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-03-31 16:32:50 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-07 16:01:18 +0100 |
commit | e7fe10114995aee4d7012f287e5b8fee74c60fd8 (patch) | |
tree | e30f89ec5f814ca00e0f164a7ac19dd1e1647d0b /gdb/nds32-tdep.c | |
parent | 1bca9b1e6be9cb45684f38dba0d4d323447a653a (diff) | |
download | binutils-gdb-e7fe10114995aee4d7012f287e5b8fee74c60fd8.tar.gz |
gdb: more 'const' in gdb/reggroups.{c,h}
Convert the reggroup_new and reggroup_gdbarch_new functions to return
a 'const regggroup *', and fix up all the fallout.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/nds32-tdep.c')
-rw-r--r-- | gdb/nds32-tdep.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index a94a03ab2ab..06b129bdd31 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -314,16 +314,16 @@ nds32_dwarf2_reg_to_regnum (struct gdbarch *gdbarch, int num) } /* NDS32 register groups. */ -static struct reggroup *nds32_cr_reggroup; -static struct reggroup *nds32_ir_reggroup; -static struct reggroup *nds32_mr_reggroup; -static struct reggroup *nds32_dr_reggroup; -static struct reggroup *nds32_pfr_reggroup; -static struct reggroup *nds32_hspr_reggroup; -static struct reggroup *nds32_dmar_reggroup; -static struct reggroup *nds32_racr_reggroup; -static struct reggroup *nds32_idr_reggroup; -static struct reggroup *nds32_secur_reggroup; +static const reggroup *nds32_cr_reggroup; +static const reggroup *nds32_ir_reggroup; +static const reggroup *nds32_mr_reggroup; +static const reggroup *nds32_dr_reggroup; +static const reggroup *nds32_pfr_reggroup; +static const reggroup *nds32_hspr_reggroup; +static const reggroup *nds32_dmar_reggroup; +static const reggroup *nds32_racr_reggroup; +static const reggroup *nds32_idr_reggroup; +static const reggroup *nds32_secur_reggroup; static void nds32_init_reggroups (void) |