1 Define PTRACE_GETSIGINFO on PowerPC when not available
3 uClibc 0.9.33.2 does not define PTRACE_GETSIGINFO in PowerPC. Even
4 though Buildroot has a uClibc patch doing that, it doesn't solve the
5 case of external uClibc toolchain from other sources (such as
6 Crosstool-NG). Therefore, this patch modifies Valgrind to define
7 PTRACE_GETSIGINFO on PowerPC to the right value, when such definition
8 is not available from the C library.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 Index: b/coregrind/vgdb-invoker-ptrace.c
13 ===================================================================
14 --- a/coregrind/vgdb-invoker-ptrace.c
15 +++ b/coregrind/vgdb-invoker-ptrace.c
20 +#if defined(__powerpc__)
21 +# ifndef PTRACE_GETSIGINFO
22 +# define PTRACE_GETSIGINFO 0x4202
26 #if VEX_HOST_WORDSIZE == 8
27 typedef Addr64 CORE_ADDR;
28 #elif VEX_HOST_WORDSIZE == 4