diff options
Diffstat (limited to 'meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch')
-rw-r--r-- | meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch b/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch index bbe0020bf3..170d512ef7 100644 --- a/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch +++ b/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | |||
@@ -1,24 +1,24 @@ | |||
1 | From 1dd5c44474b01d84de60faded960fef4a0a87e41 Mon Sep 17 00:00:00 2001 | 1 | From da30370c1e3ff7728a857e119e0529a9f097086e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 30 Apr 2016 18:32:14 -0700 | 3 | Date: Sat, 30 Apr 2016 18:32:14 -0700 |
4 | Subject: [PATCH 04/11] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC | 4 | Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems |
5 | systems | ||
6 | 5 | ||
7 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
8 | 7 | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | |||
10 | --- | 10 | --- |
11 | gdb/gdbserver/linux-ppc-low.c | 6 ++++++ | 11 | gdb/gdbserver/linux-ppc-low.c | 6 ++++++ |
12 | gdb/nat/ppc-linux.h | 6 ++++++ | 12 | gdb/nat/ppc-linux.h | 6 ++++++ |
13 | 2 files changed, 12 insertions(+) | 13 | 2 files changed, 12 insertions(+) |
14 | 14 | ||
15 | diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c | 15 | diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c |
16 | index 47428c1529..841a5e02b9 100644 | 16 | index 1b695e53..1978347c 100644 |
17 | --- a/gdb/gdbserver/linux-ppc-low.c | 17 | --- a/gdb/gdbserver/linux-ppc-low.c |
18 | +++ b/gdb/gdbserver/linux-ppc-low.c | 18 | +++ b/gdb/gdbserver/linux-ppc-low.c |
19 | @@ -21,7 +21,13 @@ | 19 | @@ -23,7 +23,13 @@ |
20 | #include "linux-low.h" | 20 | #include "elf/common.h" |
21 | 21 | #include <sys/uio.h> | |
22 | #include <elf.h> | 22 | #include <elf.h> |
23 | +#if !defined(__GLIBC__) | 23 | +#if !defined(__GLIBC__) |
24 | +# define pt_regs uapi_pt_regs | 24 | +# define pt_regs uapi_pt_regs |
@@ -31,12 +31,12 @@ index 47428c1529..841a5e02b9 100644 | |||
31 | #include "arch/ppc-linux-common.h" | 31 | #include "arch/ppc-linux-common.h" |
32 | #include "arch/ppc-linux-tdesc.h" | 32 | #include "arch/ppc-linux-tdesc.h" |
33 | diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h | 33 | diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h |
34 | index 3d4d4fdc56..5b93af8d3a 100644 | 34 | index f1561b3b..40399361 100644 |
35 | --- a/gdb/nat/ppc-linux.h | 35 | --- a/gdb/nat/ppc-linux.h |
36 | +++ b/gdb/nat/ppc-linux.h | 36 | +++ b/gdb/nat/ppc-linux.h |
37 | @@ -18,7 +18,13 @@ | 37 | @@ -18,7 +18,13 @@ |
38 | #ifndef PPC_LINUX_H | 38 | #ifndef NAT_PPC_LINUX_H |
39 | #define PPC_LINUX_H 1 | 39 | #define NAT_PPC_LINUX_H |
40 | 40 | ||
41 | +#if !defined(__GLIBC__) | 41 | +#if !defined(__GLIBC__) |
42 | +# define pt_regs uapi_pt_regs | 42 | +# define pt_regs uapi_pt_regs |
@@ -48,6 +48,3 @@ index 3d4d4fdc56..5b93af8d3a 100644 | |||
48 | #include <asm/cputable.h> | 48 | #include <asm/cputable.h> |
49 | 49 | ||
50 | /* This sometimes isn't defined. */ | 50 | /* This sometimes isn't defined. */ |
51 | -- | ||
52 | 2.18.0 | ||
53 | |||