arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1457479-4.patch

147e83
commit cab91f947a6059907a314a91f4c90abcccfb0262
147e83
Author: Dmitry V. Levin <ldv@altlinux.org>
147e83
Date:   Sun Jul 23 23:22:53 2017 +0000
147e83
147e83
    S390: fix sys/ptrace.h to make it includible again after asm/ptrace.h
147e83
    
147e83
    sys/ptrace.h on S390 used to be includible both before and after
147e83
    asm/ptrace.h, until commit b08a6a0dea63742313ed3d9577c1e2d83436b196
147e83
    among other changes introduced PTRACE_SINGLEBLOCK enum constant which
147e83
    is also defined in asm/ptrace.h as a macro, making sys/ptrace.h fail
147e83
    to compile when included after asm/ptrace.h.
147e83
    
147e83
    * sysdeps/unix/sysv/linux/s390/sys/ptrace.h [_LINUX_PTRACE_H ||
147e83
    _S390_PTRACE_H]: Undefine all PTRACE_* macro constants defined
147e83
    later as enum constants, except PTRACE_PEEKUSER, PTRACE_POKEUSER,
147e83
    and PTRACE_SEIZE_DEVEL that are not defined by Linux headers.
147e83
147e83
diff --git a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
147e83
index 88079fc..e913647 100644
147e83
--- a/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
147e83
+++ b/sysdeps/unix/sysv/linux/s390/sys/ptrace.h
147e83
@@ -24,24 +24,60 @@
147e83
 #include <bits/types.h>
147e83
 
147e83
 __BEGIN_DECLS
147e83
-#ifdef _LINUX_PTRACE_H
147e83
+#if defined _LINUX_PTRACE_H || defined _S390_PTRACE_H
147e83
 /* Kludge to stop stuff gdb & strace compiles from getting upset
147e83
  */
147e83
-#undef PTRACE_TRACEME
147e83
-#undef PTRACE_PEEKTEXT
147e83
-#undef PTRACE_PEEKDATA
147e83
-#undef PTRACE_PEEKUSR
147e83
-#undef PTRACE_POKETEXT
147e83
-#undef PTRACE_POKEDATA
147e83
-#undef PTRACE_POKEUSR
147e83
-#undef PTRACE_CONT
147e83
-#undef PTRACE_KILL
147e83
-#undef PTRACE_SINGLESTEP
147e83
-
147e83
-#undef PTRACE_ATTACH
147e83
-#undef PTRACE_DETACH
147e83
-
147e83
-#undef PTRACE_SYSCALL
147e83
+# undef PTRACE_TRACEME
147e83
+# undef PTRACE_PEEKTEXT
147e83
+# undef PTRACE_PEEKDATA
147e83
+# undef PTRACE_POKETEXT
147e83
+# undef PTRACE_POKEDATA
147e83
+# undef PTRACE_CONT
147e83
+# undef PTRACE_KILL
147e83
+# undef PTRACE_SINGLESTEP
147e83
+# undef PTRACE_SINGLEBLOCK
147e83
+# undef PTRACE_ATTACH
147e83
+# undef PTRACE_DETACH
147e83
+# undef PTRACE_SYSCALL
147e83
+# undef PTRACE_SETOPTIONS
147e83
+# undef PTRACE_GETEVENTMSG
147e83
+# undef PTRACE_GETSIGINFO
147e83
+# undef PTRACE_SETSIGINFO
147e83
+# undef PTRACE_GETREGSET
147e83
+# undef PTRACE_SETREGSET
147e83
+# undef PTRACE_SEIZE
147e83
+# undef PTRACE_INTERRUPT
147e83
+# undef PTRACE_LISTEN
147e83
+# undef PTRACE_PEEKSIGINFO
147e83
+# undef PTRACE_GETSIGMASK
147e83
+# undef PTRACE_SETSIGMASK
147e83
+# undef PTRACE_SECCOMP_GET_FILTER
147e83
+# undef PTRACE_PEEKUSR_AREA
147e83
+# undef PTRACE_POKEUSR_AREA
147e83
+# undef PTRACE_GET_LAST_BREAK
147e83
+# undef PTRACE_ENABLE_TE
147e83
+# undef PTRACE_DISABLE_TE
147e83
+# undef PTRACE_TE_ABORT_RAND
147e83
+# undef PTRACE_O_TRACESYSGOOD
147e83
+# undef PTRACE_O_TRACEFORK
147e83
+# undef PTRACE_O_TRACEVFORK
147e83
+# undef PTRACE_O_TRACECLONE
147e83
+# undef PTRACE_O_TRACEEXEC
147e83
+# undef PTRACE_O_TRACEVFORKDONE
147e83
+# undef PTRACE_O_TRACEEXIT
147e83
+# undef PTRACE_O_TRACESECCOMP
147e83
+# undef PTRACE_O_EXITKILL
147e83
+# undef PTRACE_O_SUSPEND_SECCOMP
147e83
+# undef PTRACE_O_MASK
147e83
+# undef PTRACE_EVENT_FORK
147e83
+# undef PTRACE_EVENT_VFORK
147e83
+# undef PTRACE_EVENT_CLONE
147e83
+# undef PTRACE_EVENT_EXEC
147e83
+# undef PTRACE_EVENT_VFORK_DONE
147e83
+# undef PTRACE_EVENT_EXIT
147e83
+# undef PTRACE_EVENT_SECCOMP
147e83
+# undef PTRACE_EVENT_STOP
147e83
+# undef PTRACE_PEEKSIGINFO_SHARED
147e83
 #endif
147e83
 /* Type of the REQUEST argument to `ptrace.'  */
147e83
 enum __ptrace_request