1 From 3964e15443c5cdfca6723987c8ef1ef6cf984d41 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 6 Aug 2016 17:32:50 -0700
4 Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems
6 Upstream-Status: Pending
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 gdb/gdbserver/linux-ppc-low.c | 6 ++++++
12 gdb/nat/ppc-linux.h | 6 ++++++
13 2 files changed, 12 insertions(+)
15 diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
16 index 188fac0..f71d5ab 100644
17 --- a/gdb/gdbserver/linux-ppc-low.c
18 +++ b/gdb/gdbserver/linux-ppc-low.c
20 #include "linux-low.h"
23 +#if !defined(__GLIBC__)
24 +# define pt_regs uapi_pt_regs
26 #include <asm/ptrace.h>
27 +#if !defined(__GLIBC__)
31 #include "nat/ppc-linux.h"
33 diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
34 index 0ff2223..c978daa 100644
35 --- a/gdb/nat/ppc-linux.h
36 +++ b/gdb/nat/ppc-linux.h
41 +#if !defined(__GLIBC__)
42 +# define pt_regs uapi_pt_regs
44 #include <asm/ptrace.h>
45 +#if !defined(__GLIBC__)
48 #include <asm/cputable.h>
50 /* This sometimes isn't defined. */