diff options
| author | Pavel Labath <labath@google.com> | 2017-01-24 14:27:51 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-01-24 14:27:51 +0000 |
| commit | b699c548c61cd60f2796d86074946996bc73710c (patch) | |
| tree | 71c3076ed146ae9416d531b6337b3ed4f795fbf2 /lldb/source/Plugins/Process | |
| parent | e9862b607eb481f2ba7b9b1d3646bb91c5d4daed (diff) | |
| download | bcm5719-llvm-b699c548c61cd60f2796d86074946996bc73710c.tar.gz bcm5719-llvm-b699c548c61cd60f2796d86074946996bc73710c.zip | |
android-mips: define PTRACE_GETREGSET in headers don't do it
PTRACE_GETREGSET is only defined on mips only since api level 21. Define
it ourselves, so we can compile with older platform headers.
llvm-svn: 292936
Diffstat (limited to 'lldb/source/Plugins/Process')
| -rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp index c050a2ec0cc..aae139b7fff 100644 --- a/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp @@ -71,6 +71,9 @@ struct pt_watch_regs { #define IRW (I | R | W) +#ifndef PTRACE_GETREGSET +#define PTRACE_GETREGSET 0x4204 +#endif struct pt_watch_regs default_watch_regs; using namespace lldb_private; |

