1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- From afbb66c244b1ae0aaaa90d88d3cd484f741c614f Mon Sep 17 00:00:00 2001
- From: Khem Raj <raj.khem@gmail.com>
- Date: Sat, 30 Apr 2016 18:32:14 -0700
- Subject: [PATCH 03/11] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC
- systems
- Upstream-Status: Pending
- Signed-off-by: Khem Raj <raj.khem@gmail.com>
- ---
- gdb/nat/ppc-linux.h | 6 ++++++
- gdbserver/linux-ppc-low.cc | 6 ++++++
- 2 files changed, 12 insertions(+)
- diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
- index d937a65b69c..1fd54b4a0e0 100644
- --- a/gdb/nat/ppc-linux.h
- +++ b/gdb/nat/ppc-linux.h
- @@ -18,7 +18,13 @@
- #ifndef NAT_PPC_LINUX_H
- #define NAT_PPC_LINUX_H
-
- +#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. */
- diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc
- index 337d555aee7..5d518f37268 100644
- --- a/gdbserver/linux-ppc-low.cc
- +++ b/gdbserver/linux-ppc-low.cc
- @@ -23,7 +23,13 @@
- #include "elf/common.h"
- #include <sys/uio.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 "arch/ppc-linux-common.h"
- #include "arch/ppc-linux-tdesc.h"
- --
- 2.29.2
|