summaryrefslogtreecommitdiffstats
path: root/package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2015-10-31 13:05:56 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-31 15:42:36 +0100
commita24893ceeef515396362f50e65411d4e90fdc9ec (patch)
tree64947dae571043ee229f13468eb5429ff52aad4a /package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch
parent40c2b4e95297761aa7c40d7c814b3e209bb4ce55 (diff)
downloadbuildroot-a24893ceeef515396362f50e65411d4e90fdc9ec.tar.gz
buildroot-a24893ceeef515396362f50e65411d4e90fdc9ec.zip
valgrind: bump version to 3.11.0
- rebase patch 0001-workaround-SIGSEGV-on-PPC.patch - remove upstream applied patches 0002-Fix-configure-for-Linux-kernel-4.0-rc1.patch 0004-configure.ac-Generalize-glibc-version-check.patch - rebase 0003-add-missing-ptrace-getsiginfo-on-powerpc.patch (convert to git patch format, rename to 0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch) - remove legacy VALGRIND_AUTORECONF=YES (no more patch touching confgure.ac) - add '--disable-ubsan' for new undefined behaviour sanitiser option Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch')
-rw-r--r--package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch b/package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch
new file mode 100644
index 0000000000..44adfc4190
--- /dev/null
+++ b/package/valgrind/0002-Define-PTRACE_GETSIGINFO-on-PowerPC-when-not-availab.patch
@@ -0,0 +1,37 @@
+From 7311686d6286972ff97cc18b2416a4cdd7fc5c7e Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sat, 31 Oct 2015 12:15:24 +0100
+Subject: [PATCH] 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 <thomas.petazzoni@free-electrons.com>
+---
+ coregrind/vgdb-invoker-ptrace.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/coregrind/vgdb-invoker-ptrace.c b/coregrind/vgdb-invoker-ptrace.c
+index d65f59a..bdefac2 100644
+--- a/coregrind/vgdb-invoker-ptrace.c
++++ b/coregrind/vgdb-invoker-ptrace.c
+@@ -72,6 +72,12 @@
+ # endif
+ #endif
+
++#if defined(__powerpc__)
++# ifndef PTRACE_GETSIGINFO
++# define PTRACE_GETSIGINFO 0x4202
++# endif
++#endif
++
+ // 32-bit or 64-bit wide, depending on primary architecture.
+ typedef Addr CORE_ADDR;
+ typedef Addr PTRACE_XFER_TYPE;
+--
+2.1.4
+
OpenPOWER on IntegriCloud