diff options
| author | Pavel Labath <labath@google.com> | 2016-08-08 13:13:03 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2016-08-08 13:13:03 +0000 |
| commit | 4ec22ec6b19d341af8106db2dc1964729510558d (patch) | |
| tree | 2ae6a827a0c00c3fe822c0278e9690d76ef1c6b7 | |
| parent | 1eb0d42a1b64ff7aa5d36af2df30fef929fead6f (diff) | |
| download | bcm5719-llvm-4ec22ec6b19d341af8106db2dc1964729510558d.tar.gz bcm5719-llvm-4ec22ec6b19d341af8106db2dc1964729510558d.zip | |
Clean up linux/Ptrace.h
This removes references to PT_XXX macros from the file, as they were not used anyway. It also
changes the macro used to check for the definition of __ptrace_request, as there are other C
libraries which do not define this type.
llvm-svn: 278001
| -rw-r--r-- | lldb/include/lldb/Host/linux/Ptrace.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/lldb/include/lldb/Host/linux/Ptrace.h b/lldb/include/lldb/Host/linux/Ptrace.h index b28bb37715d..731e435da0d 100644 --- a/lldb/include/lldb/Host/linux/Ptrace.h +++ b/lldb/include/lldb/Host/linux/Ptrace.h @@ -14,33 +14,24 @@ #include <sys/ptrace.h> -#ifdef __ANDROID_NDK__ -#define PT_DETACH PTRACE_DETACH +#ifndef __GLIBC__ typedef int __ptrace_request; #endif #define DEBUG_PTRACE_MAXBYTES 20 // Support ptrace extensions even when compiled without required kernel support -#ifndef PT_GETREGS - #ifndef PTRACE_GETREGS - #define PTRACE_GETREGS 12 - #endif +#ifndef PTRACE_GETREGS + #define PTRACE_GETREGS 12 #endif -#ifndef PT_SETREGS - #ifndef PTRACE_SETREGS - #define PTRACE_SETREGS 13 - #endif +#ifndef PTRACE_SETREGS + #define PTRACE_SETREGS 13 #endif -#ifndef PT_GETFPREGS - #ifndef PTRACE_GETFPREGS - #define PTRACE_GETFPREGS 14 - #endif +#ifndef PTRACE_GETFPREGS + #define PTRACE_GETFPREGS 14 #endif -#ifndef PT_SETFPREGS - #ifndef PTRACE_SETFPREGS - #define PTRACE_SETFPREGS 15 - #endif +#ifndef PTRACE_SETFPREGS + #define PTRACE_SETFPREGS 15 #endif #ifndef PTRACE_GETREGSET #define PTRACE_GETREGSET 0x4204 |

