diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch | 30 |
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 0000000000..85e0147665 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/include_asm_ptrace.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | gdb: include asm/ptrace.h in two aarch64 source files | ||
2 | |||
3 | Both sys/ptrace.h and asm/ptrace.h need to be included. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | |||
7 | Signed-off-by: joe.slater@windriver.com | ||
8 | |||
9 | |||
10 | --- a/gdb/aarch64-linux-nat.c | ||
11 | +++ b/gdb/aarch64-linux-nat.c | ||
12 | @@ -32,6 +32,8 @@ | ||
13 | #include "elf/common.h" | ||
14 | |||
15 | #include <sys/ptrace.h> | ||
16 | +#include <asm/ptrace.h> | ||
17 | + | ||
18 | #include <sys/utsname.h> | ||
19 | |||
20 | #include "gregset.h" | ||
21 | --- a/gdb/gdbserver/linux-aarch64-low.c | ||
22 | +++ b/gdb/gdbserver/linux-aarch64-low.c | ||
23 | @@ -26,6 +26,7 @@ | ||
24 | #include <signal.h> | ||
25 | #include <sys/user.h> | ||
26 | #include <sys/ptrace.h> | ||
27 | +#include <asm/ptrace.h> | ||
28 | #include <sys/uio.h> | ||
29 | |||
30 | #include "gdb_proc_service.h" | ||