X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fvalgrind%2F0003-add-missing-ptrace-getsiginfo-on-powerpc.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fvalgrind%2F0003-add-missing-ptrace-getsiginfo-on-powerpc.patch;h=f663825aeb98fcc199eaa790c93ec6ccd0065726;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/valgrind/0003-add-missing-ptrace-getsiginfo-on-powerpc.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/valgrind/0003-add-missing-ptrace-getsiginfo-on-powerpc.patch new file mode 100644 index 0000000..f663825 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/valgrind/0003-add-missing-ptrace-getsiginfo-on-powerpc.patch @@ -0,0 +1,28 @@ +Define PTRACE_GETSIGINFO on PowerPC when not available + +uClibc 0.9.33.2 does not define PTRACE_GETSIGINFO in PowerPC. Even +though Buildroot has a uClibc patch doing that, it doesn't solve the +case of external uClibc toolchain from other sources (such as +Crosstool-NG). Therefore, this patch modifies Valgrind to define +PTRACE_GETSIGINFO on PowerPC to the right value, when such definition +is not available from the C library. + +Signed-off-by: Thomas Petazzoni + +Index: b/coregrind/vgdb-invoker-ptrace.c +=================================================================== +--- a/coregrind/vgdb-invoker-ptrace.c ++++ b/coregrind/vgdb-invoker-ptrace.c +@@ -71,6 +71,12 @@ + # endif + #endif + ++#if defined(__powerpc__) ++# ifndef PTRACE_GETSIGINFO ++# define PTRACE_GETSIGINFO 0x4202 ++# endif ++#endif ++ + #if VEX_HOST_WORDSIZE == 8 + typedef Addr64 CORE_ADDR; + #elif VEX_HOST_WORDSIZE == 4