aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-linux-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-03-06 16:06:42 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2017-03-06 16:07:05 -0500
commitd274ecf4ddf76768af57e27f654b9ce6784b391c (patch)
treed07f57418bd22a268b31a1902eee1f3f355aaa85 /gdb/xtensa-linux-nat.c
parent79a964dca572024447adf92e50959dc88aa4f27a (diff)
downloadgdb-d274ecf4ddf76768af57e27f654b9ce6784b391c.zip
gdb-d274ecf4ddf76768af57e27f654b9ce6784b391c.tar.gz
gdb-d274ecf4ddf76768af57e27f654b9ce6784b391c.tar.bz2
Remove const in xtensa-linux-nat.c:fetch_gregs
Fixes: /home/emaisin/src/binutils-gdb/gdb/xtensa-linux-nat.c: In function 'void fetch_gregs(regcache*, ptid_t, int)': /home/emaisin/src/binutils-gdb/gdb/xtensa-linux-nat.c:178:23: error: uninitialized const 'regs' [-fpermissive] const gdb_gregset_t regs; ^ gdb/ChangeLog: * xtensa-linux-nat.c (fetch_gregs): Remove const.
Diffstat (limited to 'gdb/xtensa-linux-nat.c')
-rw-r--r--gdb/xtensa-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index afe15f6..c29f0c7 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -175,7 +175,7 @@ static void
fetch_gregs (struct regcache *regcache, int regnum)
{
int tid = ptid_get_lwp (inferior_ptid);
- const gdb_gregset_t regs;
+ gdb_gregset_t regs;
int areg;
if (ptrace (PTRACE_GETREGS, tid, 0, (long) &regs) < 0)