* [Buildroot] [PATCH] package/gdb: fix gdb-7.12.1 build on xtensa
@ 2017-03-27 20:22 Max Filippov
2017-03-28 19:50 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2017-03-27 20:22 UTC (permalink / raw)
To: buildroot
This fixes the following gdb-7.12.1 build error on xtensa architecture:
gdb/xtensa-linux-nat.c: In function 'void fetch_gregs(regcache*, ptid_t, int)':
gdb/xtensa-linux-nat.c:178:23: error: uninitialized const 'regs' [-fpermissive]
const gdb_gregset_t regs;
Backported from: d274ecf4ddf76768af57e27f654b9ce6784b391c
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
...e-const-in-xtensa-linux-nat.c-fetch_gregs.patch | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 package/gdb/7.12.1/0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch
diff --git a/package/gdb/7.12.1/0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch b/package/gdb/7.12.1/0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch
new file mode 100644
index 0000000..bb3d99d
--- /dev/null
+++ b/package/gdb/7.12.1/0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch
@@ -0,0 +1,39 @@
+From d274ecf4ddf76768af57e27f654b9ce6784b391c Mon Sep 17 00:00:00 2001
+From: Simon Marchi <simon.marchi@ericsson.com>
+Date: Mon, 6 Mar 2017 16:06:42 -0500
+Subject: [PATCH] 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.
+
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+---
+Backported from: d274ecf4ddf76768af57e27f654b9ce6784b391c
+
+ 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 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) ®s) < 0)
+--
+2.1.4
+
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/gdb: fix gdb-7.12.1 build on xtensa
2017-03-27 20:22 [Buildroot] [PATCH] package/gdb: fix gdb-7.12.1 build on xtensa Max Filippov
@ 2017-03-28 19:50 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2017-03-28 19:50 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 27 Mar 2017 13:22:10 -0700, Max Filippov wrote:
> This fixes the following gdb-7.12.1 build error on xtensa architecture:
>
> gdb/xtensa-linux-nat.c: In function 'void fetch_gregs(regcache*, ptid_t, int)':
> gdb/xtensa-linux-nat.c:178:23: error: uninitialized const 'regs' [-fpermissive]
> const gdb_gregset_t regs;
>
> Backported from: d274ecf4ddf76768af57e27f654b9ce6784b391c
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
> ...e-const-in-xtensa-linux-nat.c-fetch_gregs.patch | 39 ++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
> create mode 100644 package/gdb/7.12.1/0001-Remove-const-in-xtensa-linux-nat.c-fetch_gregs.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-28 19:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 20:22 [Buildroot] [PATCH] package/gdb: fix gdb-7.12.1 build on xtensa Max Filippov
2017-03-28 19:50 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.