summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@linaro.org>2017-02-02 11:28:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-05 09:22:17 +0000
commit937643eb0e84250ad2a26b1ebc3a56d850857ed4 (patch)
treec6f0c0306e4a3bb6aaa7bbe9b72c0f4df2dcc9c2 /meta/recipes-devtools/gdb
parentd4caf50fc2d7eb63eb5fe96ae9edf0e66e924b4d (diff)
downloadpoky-937643eb0e84250ad2a26b1ebc3a56d850857ed4.tar.gz
gdb 7.12: fix armv8b build
Backport fix from GDB upstream to fix big-endian aarch64 build. (From OE-Core rev: 0635a96d82f5f5dd65a2d45ddca7559dea847916) Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb-7.12.inc1
-rw-r--r--meta/recipes-devtools/gdb/gdb/cb93dc7f262978bafe36397a41a56e409a302042.patch43
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb-7.12.inc b/meta/recipes-devtools/gdb/gdb-7.12.inc
index 2faddc58bf..7eea65f4fa 100644
--- a/meta/recipes-devtools/gdb/gdb-7.12.inc
+++ b/meta/recipes-devtools/gdb/gdb-7.12.inc
@@ -15,6 +15,7 @@ SRC_URI = "http://ftp.gnu.org/gnu/gdb/gdb-${PV}.tar.xz \
15 file://0008-Use-exorted-definitions-of-SIGRTMIN.patch \ 15 file://0008-Use-exorted-definitions-of-SIGRTMIN.patch \
16 file://0009-Change-order-of-CFLAGS.patch \ 16 file://0009-Change-order-of-CFLAGS.patch \
17 file://0010-resolve-restrict-keyword-conflict.patch \ 17 file://0010-resolve-restrict-keyword-conflict.patch \
18 file://cb93dc7f262978bafe36397a41a56e409a302042.patch \
18" 19"
19SRC_URI[md5sum] = "a0a3a00f7499b0c5278ba8676745d180" 20SRC_URI[md5sum] = "a0a3a00f7499b0c5278ba8676745d180"
20SRC_URI[sha256sum] = "834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94" 21SRC_URI[sha256sum] = "834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94"
diff --git a/meta/recipes-devtools/gdb/gdb/cb93dc7f262978bafe36397a41a56e409a302042.patch b/meta/recipes-devtools/gdb/gdb/cb93dc7f262978bafe36397a41a56e409a302042.patch
new file mode 100644
index 0000000000..3a42f0a770
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/cb93dc7f262978bafe36397a41a56e409a302042.patch
@@ -0,0 +1,43 @@
1From cb93dc7f262978bafe36397a41a56e409a302042 Mon Sep 17 00:00:00 2001
2From: Yao Qi <yao.qi@linaro.org>
3Date: Mon, 24 Oct 2016 10:59:11 +0100
4Subject: [PATCH] [GDBserver] Fix conversion warning
5
6I got the following warning if I build GDBserver for aarch64_be-linux-gnu,
7
8git/gdb/gdbserver/linux-aarch64-low.c:1539:39: error: invalid conversion from 'void*' to 'uint32_t* {aka unsigned int*}' [-fpermissive]
9 uint32_t *le_buf = xmalloc (byte_len);
10 ^
11The patch is to fix the warning.
12
13gdb/gdbserver:
14
152016-10-24 Yao Qi <yao.qi@linaro.org>
16
17 PR server/20733
18 * linux-aarch64-low.c (append_insns): Cast the return value to
19 'uint32_t *'.
20
21Upstream-status: Backport
22Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
23
24---
25 gdb/gdbserver/linux-aarch64-low.c | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
29index e54a8ba..ae80cdd 100644
30--- a/gdb/gdbserver/linux-aarch64-low.c
31+++ b/gdb/gdbserver/linux-aarch64-low.c
32@@ -1536,7 +1536,7 @@ append_insns (CORE_ADDR *to, size_t len, const uint32_t *buf)
33 {
34 size_t byte_len = len * sizeof (uint32_t);
35 #if (__BYTE_ORDER == __BIG_ENDIAN)
36- uint32_t *le_buf = xmalloc (byte_len);
37+ uint32_t *le_buf = (uint32_t *) xmalloc (byte_len);
38 size_t i;
39
40 for (i = 0; i < len; i++)
41--
422.9.3
43