glibc 2.3.4 does not appear to define PTRACE_GETSIGINFO. This was
observed on a RHEL5 system on s390. Provide a suitable definition.
Tweak gdbserver_tests/filter_stderr to ignore messages related to
interrupted poll system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14197 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vgdb-invoker-ptrace.c b/coregrind/vgdb-invoker-ptrace.c
index acb4d0d..f69154a 100644
--- a/coregrind/vgdb-invoker-ptrace.c
+++ b/coregrind/vgdb-invoker-ptrace.c
@@ -64,6 +64,13 @@
#include <sys/procfs.h>
+#if defined(VGA_s390x)
+/* RHEL 5 uses glibc 2.3.4 which does not define PTRACE_GETSIGINFO */
+# ifndef PTRACE_GETSIGINFO
+# define PTRACE_GETSIGINFO 0x4202
+# endif
+#endif
+
#if VEX_HOST_WORDSIZE == 8
typedef Addr64 CORE_ADDR;
#elif VEX_HOST_WORDSIZE == 4
diff --git a/gdbserver_tests/filter_stderr b/gdbserver_tests/filter_stderr
index efe81ec..8664577 100755
--- a/gdbserver_tests/filter_stderr
+++ b/gdbserver_tests/filter_stderr
@@ -3,6 +3,7 @@
dir=`dirname $0`
$dir/../tests/filter_stderr_basic |
+perl -0777 -p -e 's/error 4 Interrupted system call\nVG_\(poll\) failed \(old kernel \?\) retrying .*\n//g' |
sed -e '/^Copyright (C) /d' \
\
-e '/TO DEBUG THIS PROCESS USING GDB/d' \