[Lldb-commits] [lldb] r278001 - Clean up linux/Ptrace.h
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 8 06:13:03 PDT 2016
Author: labath
Date: Mon Aug 8 08:13:03 2016
New Revision: 278001
URL: http://llvm.org/viewvc/llvm-project?rev=278001&view=rev
Log:
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.
Modified:
lldb/trunk/include/lldb/Host/linux/Ptrace.h
Modified: lldb/trunk/include/lldb/Host/linux/Ptrace.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/linux/Ptrace.h?rev=278001&r1=278000&r2=278001&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/linux/Ptrace.h (original)
+++ lldb/trunk/include/lldb/Host/linux/Ptrace.h Mon Aug 8 08:13:03 2016
@@ -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
More information about the lldb-commits
mailing list