From a4256395800b49fd6ca5bf52b282a89218afeb0c Mon Sep 17 00:00:00 2001 From: Joe Slater Date: Tue, 9 Sep 2014 11:59:38 -0700 Subject: gdb: allow compilation for __aarch64__ asm/ptrace.h must be included in two files. (From OE-Core rev: dd776e2aacb4e75f2195b8943a9594131592a0da) Signed-off-by: Joe Slater Signed-off-by: Richard Purdie --- .../gdb/gdb/include_asm_ptrace.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch (limited to 'meta/recipes-devtools/gdb/gdb') 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 ++#include ++ + #include + + #include "gregset.h" +--- a/gdb/gdbserver/linux-aarch64-low.c ++++ b/gdb/gdbserver/linux-aarch64-low.c +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + + #include "gdb_proc_service.h" -- cgit v1.1