summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gdb/gdb
diff options
context:
space:
mode:
authorJoe Slater <jslater@windriver.com>2014-09-09 11:59:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-10 11:33:26 +0100
commita4256395800b49fd6ca5bf52b282a89218afeb0c (patch)
tree0d38fe05636d6da5a2ae6b20165020f875e6eb2e /meta/recipes-devtools/gdb/gdb
parent5bef32283f53e7f1bbde81fbb95c8682e29f082a (diff)
downloadast2050-yocto-poky-a4256395800b49fd6ca5bf52b282a89218afeb0c.zip
ast2050-yocto-poky-a4256395800b49fd6ca5bf52b282a89218afeb0c.tar.gz
gdb: allow compilation for __aarch64__
asm/ptrace.h must be included in two files. (From OE-Core rev: dd776e2aacb4e75f2195b8943a9594131592a0da) Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb')
-rw-r--r--meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch b/meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch
new file mode 100644
index 0000000..85e0147
--- /dev/null
+++ b/meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch
@@ -0,0 +1,30 @@
+gdb: include asm/ptrace.h in two aarch64 source files
+
+Both sys/ptrace.h and asm/ptrace.h need to be included.
+
+Upstream-Status: Pending
+
+Signed-off-by: joe.slater@windriver.com
+
+
+--- a/gdb/aarch64-linux-nat.c
++++ b/gdb/aarch64-linux-nat.c
+@@ -32,6 +32,8 @@
+ #include "elf/common.h"
+
+ #include <sys/ptrace.h>
++#include <asm/ptrace.h>
++
+ #include <sys/utsname.h>
+
+ #include "gregset.h"
+--- a/gdb/gdbserver/linux-aarch64-low.c
++++ b/gdb/gdbserver/linux-aarch64-low.c
+@@ -26,6 +26,7 @@
+ #include <signal.h>
+ #include <sys/user.h>
+ #include <sys/ptrace.h>
++#include <asm/ptrace.h>
+ #include <sys/uio.h>
+
+ #include "gdb_proc_service.h"
OpenPOWER on IntegriCloud