aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-03-31 16:32:50 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-04-07 16:01:18 +0100
commite7fe10114995aee4d7012f287e5b8fee74c60fd8 (patch)
treee30f89ec5f814ca00e0f164a7ac19dd1e1647d0b /gdb/i386-tdep.c
parent1bca9b1e6be9cb45684f38dba0d4d323447a653a (diff)
downloadfsf-binutils-gdb-e7fe10114995aee4d7012f287e5b8fee74c60fd8.zip
fsf-binutils-gdb-e7fe10114995aee4d7012f287e5b8fee74c60fd8.tar.gz
fsf-binutils-gdb-e7fe10114995aee4d7012f287e5b8fee74c60fd8.tar.bz2
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/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 99a81b9..8501e12 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -4531,8 +4531,8 @@ i386_svr4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* i386 register groups. In addition to the normal groups, add "mmx"
and "sse". */
-static struct reggroup *i386_sse_reggroup;
-static struct reggroup *i386_mmx_reggroup;
+static const reggroup *i386_sse_reggroup;
+static const reggroup *i386_mmx_reggroup;
static void
i386_init_reggroups (void)