Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 1 | From 0f6d71118ca914002fcad78d2c8a518223d06bfb Mon Sep 17 00:00:00 2001 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 3 | Date: Sat, 30 Apr 2016 18:32:14 -0700 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | Subject: [PATCH 04/10] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC |
| 5 | systems |
| 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | gdb/gdbserver/linux-ppc-low.c | 6 ++++++ |
| 12 | gdb/nat/ppc-linux.h | 6 ++++++ |
| 13 | 2 files changed, 12 insertions(+) |
| 14 | |
| 15 | diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 16 | index 33a9feb12c..1a9141faef 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 17 | --- a/gdb/gdbserver/linux-ppc-low.c |
| 18 | +++ b/gdb/gdbserver/linux-ppc-low.c |
| 19 | @@ -21,7 +21,13 @@ |
| 20 | #include "linux-low.h" |
| 21 | |
| 22 | #include <elf.h> |
| 23 | +#if !defined(__GLIBC__) |
| 24 | +# define pt_regs uapi_pt_regs |
| 25 | +#endif |
| 26 | #include <asm/ptrace.h> |
| 27 | +#if !defined(__GLIBC__) |
| 28 | +# undef pt_regs |
| 29 | +#endif |
| 30 | |
| 31 | #include "nat/ppc-linux.h" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 32 | #include "linux-ppc-tdesc.h" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 34 | index 5837ea1767..7233929192 100644 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 35 | --- a/gdb/nat/ppc-linux.h |
| 36 | +++ b/gdb/nat/ppc-linux.h |
| 37 | @@ -18,7 +18,13 @@ |
| 38 | #ifndef PPC_LINUX_H |
| 39 | #define PPC_LINUX_H 1 |
| 40 | |
| 41 | +#if !defined(__GLIBC__) |
| 42 | +# define pt_regs uapi_pt_regs |
| 43 | +#endif |
| 44 | #include <asm/ptrace.h> |
| 45 | +#if !defined(__GLIBC__) |
| 46 | +# undef pt_regs |
| 47 | +#endif |
| 48 | #include <asm/cputable.h> |
| 49 | |
| 50 | /* This sometimes isn't defined. */ |
| 51 | -- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 52 | 2.13.1 |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 53 | |