From 4330b878c7c238ecc5edf26a70515d5ad281efe8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 7 Sep 2017 22:24:36 +0200 Subject: [PATCH] backport: ptrace.h: New file. Backported from mainline 2017-08-07 Jakub Jelinek * include/system/sys/ptrace.h: New file. From-SVN: r251852 --- libsanitizer/ChangeLog | 7 +++++++ libsanitizer/include/system/sys/ptrace.h | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 libsanitizer/include/system/sys/ptrace.h 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 + + Backported from mainline + 2017-08-07 Jakub Jelinek + + * 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 +#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