From 59b06d198f4b0fedd3d12c8737aec65de56d4347 Mon Sep 17 00:00:00 2001
From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 7 Sep 2017 20:24:36 +0000
Subject: 	Backported from mainline 	2017-08-07  Jakub Jelinek 
 <jakub@redhat.com>

	* include/system/sys/ptrace.h: New file.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@251852 138bc75d-0d04-0410-961f-82ee72b054a4
---
 libsanitizer/ChangeLog                   | 7 +++++++
 libsanitizer/include/system/sys/ptrace.h | 7 +++++++
 2 files changed, 14 insertions(+)
 create mode 100644 libsanitizer/include/system/sys/ptrace.h

(limited to 'libsanitizer')

diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog
index d4c9d4b1536..7aa9d287804 100644
--- a/libsanitizer/ChangeLog
+++ b/libsanitizer/ChangeLog
@@ -1,3 +1,10 @@
+2017-09-07  Jakub Jelinek  <jakub@redhat.com>
+
+	Backported from mainline
+	2017-08-07  Jakub Jelinek  <jakub@redhat.com>
+
+	* include/system/sys/ptrace.h: New file.
+
 2017-08-14  Release Manager
 
 	* GCC 7.2.0 released.
diff --git a/libsanitizer/include/system/sys/ptrace.h b/libsanitizer/include/system/sys/ptrace.h
new file mode 100644
index 00000000000..1cfe4ce96e0
--- /dev/null
+++ b/libsanitizer/include/system/sys/ptrace.h
@@ -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
-- 
cgit v1.2.1