|
From: <sv...@va...> - 2014-09-24 19:13:12
|
Author: florian
Date: Wed Sep 24 19:13:01 2014
New Revision: 14565
Log:
Glibc versions prior to 2.5 do not define PTRACE_GETSIGINFO
(determined by Patrick J. LoPresti).
Tweak the ifdeffery.
Modified:
trunk/NEWS
trunk/coregrind/vgdb-invoker-ptrace.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Wed Sep 24 19:13:01 2014
@@ -30,6 +30,7 @@
339020 ppc64: memcheck/tests/ppc64/power_ISA2_05 failing in nightly build
339156 - gdbsrv not called for fatal signal
n-i-bz Old STABS code is still being compiled, but never used. Remove it.
+n-i-bz Fix compilation on distros with glibc < 2.5
Release 3.10.0 (10 September 2014)
Modified: trunk/coregrind/vgdb-invoker-ptrace.c
==============================================================================
--- trunk/coregrind/vgdb-invoker-ptrace.c (original)
+++ trunk/coregrind/vgdb-invoker-ptrace.c Wed Sep 24 19:13:01 2014
@@ -64,8 +64,9 @@
#include <sys/procfs.h>
-#if defined(VGA_s390x)
-/* RHEL 5 uses glibc 2.3.4 which does not define PTRACE_GETSIGINFO */
+// glibc versions prior to 2.5 do not define PTRACE_GETSIGINFO on
+// the platforms we support.
+#if !((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5))
# ifndef PTRACE_GETSIGINFO
# define PTRACE_GETSIGINFO 0x4202
# endif
|