* include/system/sys/ptrace.h: New file.
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Aug 2017 08:32:47 +0000 (10:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 7 Aug 2017 08:32:47 +0000 (10:32 +0200)
From-SVN: r250910

libsanitizer/ChangeLog
libsanitizer/include/system/sys/ptrace.h [new file with mode: 0644]

index 75c9f0cecd0575423ea81217265473242a8b4080..5c20f7da93197633afd88d6aa55f8a532db85449 100644 (file)
@@ -1,3 +1,7 @@
+2017-08-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * include/system/sys/ptrace.h: New file.
+
 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/80998
diff --git a/libsanitizer/include/system/sys/ptrace.h b/libsanitizer/include/system/sys/ptrace.h
new file mode 100644 (file)
index 0000000..1cfe4ce
--- /dev/null
@@ -0,0 +1,7 @@
+#include_next <sys/ptrace.h>
+#ifndef PTRACE_GETREGSET
+/* glibc before
+   https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cbff0d9689c4d68578b6a4f0a17807232506ea27
+   doesn't define PTRACE_GETREGSET.  */
+#define PTRACE_GETREGSET 0x4204
+#endif