The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / valgrind / 0003-add-missing-ptrace-getsiginfo-on-powerpc.patch
1 Define PTRACE_GETSIGINFO on PowerPC when not available
2
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.
9
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11
12 Index: b/coregrind/vgdb-invoker-ptrace.c
13 ===================================================================
14 --- a/coregrind/vgdb-invoker-ptrace.c
15 +++ b/coregrind/vgdb-invoker-ptrace.c
16 @@ -71,6 +71,12 @@
17  #   endif
18  #endif
19  
20 +#if defined(__powerpc__)
21 +# ifndef PTRACE_GETSIGINFO
22 +#  define PTRACE_GETSIGINFO 0x4202
23 +# endif
24 +#endif
25 +
26  #if VEX_HOST_WORDSIZE == 8
27  typedef Addr64 CORE_ADDR;
28  #elif VEX_HOST_WORDSIZE == 4