| From bec564eb454bc7fc6ecfcb573aa53040bf39c1d5 Mon Sep 17 00:00:00 2001 |
| From: Khem Raj <raj.khem@gmail.com> |
| Date: Sat, 30 Apr 2016 16:46:03 +0000 |
| Subject: [PATCH 04/10] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC |
| systems |
| |
| Upstream-Status: Pending |
| |
| Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| --- |
| gdb/gdbserver/linux-ppc-low.c | 6 ++++++ |
| gdb/nat/ppc-linux.h | 6 ++++++ |
| 2 files changed, 12 insertions(+) |
| |
| diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c |
| index 2145c50..777905d 100644 |
| --- a/gdb/gdbserver/linux-ppc-low.c |
| +++ b/gdb/gdbserver/linux-ppc-low.c |
| @@ -21,7 +21,13 @@ |
| #include "linux-low.h" |
| |
| #include <elf.h> |
| +#if !defined(__GLIBC__) |
| +# define pt_regs uapi_pt_regs |
| +#endif |
| #include <asm/ptrace.h> |
| +#if !defined(__GLIBC__) |
| +# undef pt_regs |
| +#endif |
| |
| #include "nat/ppc-linux.h" |
| |
| diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h |
| index 85fbcd8..cbec9c5 100644 |
| --- a/gdb/nat/ppc-linux.h |
| +++ b/gdb/nat/ppc-linux.h |
| @@ -18,7 +18,13 @@ |
| #ifndef PPC_LINUX_H |
| #define PPC_LINUX_H 1 |
| |
| +#if !defined(__GLIBC__) |
| +# define pt_regs uapi_pt_regs |
| +#endif |
| #include <asm/ptrace.h> |
| +#if !defined(__GLIBC__) |
| +# undef pt_regs |
| +#endif |
| #include <asm/cputable.h> |
| |
| /* This sometimes isn't defined. */ |
| -- |
| 2.8.2 |
| |