]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb: allow compilation for __aarch64__
authorJoe Slater <jslater@windriver.com>
Tue, 9 Sep 2014 18:59:38 +0000 (11:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Sep 2014 10:31:58 +0000 (11:31 +0100)
asm/ptrace.h must be included in two files.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb.inc
meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch [new file with mode: 0644]

index 3321a244e8d76f05219e3803f1208656ee2335a7..7b3e59af624a1b0a3ba5b289bf218ee4391ec292 100644 (file)
@@ -5,6 +5,7 @@ inherit gettext
 SRC_URI += "file://kill_arm_map_symbols.patch \
             file://gdbserver-cflags-last.diff;striplevel=0 \
             file://renesas-sh-native-support.patch \
+            file://include_asm_ptrace.patch \
            "
 #LDFLAGS_append = " -s"
 #export CFLAGS_append=" -L${STAGING_LIBDIR}"
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 (file)
index 0000000..85e0147
--- /dev/null
@@ -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"