This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] gdb: xtensa: drop incorrect const from automatic variable
- From: Max Filippov <jcmvbkbc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Cc: Maxim Grigoriev <maxim2405 at gmail dot com>, Woody LaRue <larue at cadence dot com>, Marc Gauthier <marc at cadence dot com>, Max Filippov <jcmvbkbc at gmail dot com>
- Date: Tue, 21 Feb 2017 18:10:57 -0800
- Subject: [PATCH] gdb: xtensa: drop incorrect const from automatic variable
- Authentication-results: sourceware.org; auth=none
gdb/
2017-02-21 Max Filippov <jcmvbkbc@gmail.com>
* xtensa-linux-nat.c (fetch_gregs): Drop incorrect const
qualifier.
---
gdb/xtensa-linux-nat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c
index 7a27bf2..a80e429 100644
--- a/gdb/xtensa-linux-nat.c
+++ b/gdb/xtensa-linux-nat.c
@@ -211,7 +211,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) ®s) < 0)
--
2.1.4