diff options
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index ea245f7fcaf..46810778ea0 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -53,12 +53,26 @@ #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 + #define PTRACE_GETREGS 12 #endif +#endif +#ifndef PT_SETREGS #ifndef PTRACE_SETREGS #define PTRACE_SETREGS 13 #endif +#endif +#ifndef PT_GETFPREGS +#ifndef PTRACE_GETFPREGS + #define PTRACE_GETFPREGS 14 +#endif +#endif +#ifndef PT_SETFPREGS +#ifndef PTRACE_SETFPREGS + #define PTRACE_SETFPREGS 15 +#endif +#endif #ifndef PTRACE_GETREGSET #define PTRACE_GETREGSET 0x4204 #endif |