diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch b/meta/recipes-devtools/gdb/gdb/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch new file mode 100644 index 0000000000..342f1ce425 --- /dev/null +++ b/meta/recipes-devtools/gdb/gdb/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 33a2cdb731298b73277507f01b9a21cd340c5b5c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 30 Apr 2016 16:46:03 +0000 | ||
4 | Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | gdb/gdbserver/linux-ppc-low.c | 6 ++++++ | ||
11 | gdb/nat/ppc-linux.h | 6 ++++++ | ||
12 | 2 files changed, 12 insertions(+) | ||
13 | |||
14 | diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c | ||
15 | index 188fac0..f71d5ab 100644 | ||
16 | --- a/gdb/gdbserver/linux-ppc-low.c | ||
17 | +++ b/gdb/gdbserver/linux-ppc-low.c | ||
18 | @@ -21,7 +21,13 @@ | ||
19 | #include "linux-low.h" | ||
20 | |||
21 | #include <elf.h> | ||
22 | +#if !defined(__GLIBC__) | ||
23 | +# define pt_regs uapi_pt_regs | ||
24 | +#endif | ||
25 | #include <asm/ptrace.h> | ||
26 | +#if !defined(__GLIBC__) | ||
27 | +# undef pt_regs | ||
28 | +#endif | ||
29 | |||
30 | #include "nat/ppc-linux.h" | ||
31 | |||
32 | diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h | ||
33 | index 0ff2223..c978daa 100644 | ||
34 | --- a/gdb/nat/ppc-linux.h | ||
35 | +++ b/gdb/nat/ppc-linux.h | ||
36 | @@ -18,7 +18,13 @@ | ||
37 | #ifndef PPC_LINUX_H | ||
38 | #define PPC_LINUX_H 1 | ||
39 | |||
40 | +#if !defined(__GLIBC__) | ||
41 | +# define pt_regs uapi_pt_regs | ||
42 | +#endif | ||
43 | #include <asm/ptrace.h> | ||
44 | +#if !defined(__GLIBC__) | ||
45 | +# undef pt_regs | ||
46 | +#endif | ||
47 | #include <asm/cputable.h> | ||
48 | |||
49 | /* This sometimes isn't defined. */ | ||
50 | -- | ||
51 | 1.8.3.1 | ||
52 | |||