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