diff options
author | Todd Fiala <todd.fiala@gmail.com> | 2014-09-27 16:54:22 +0000 |
---|---|---|
committer | Todd Fiala <todd.fiala@gmail.com> | 2014-09-27 16:54:22 +0000 |
commit | cacde7df6dc9d8c94401b7e26714dbd7383bcc15 (patch) | |
tree | 8c5ae971be67e0fb0b4dafb1d51e77c30ac088b7 /lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp | |
parent | 7b4133ac8180ee4713616f88b9c4df0953397635 (diff) | |
download | bcm5719-llvm-cacde7df6dc9d8c94401b7e26714dbd7383bcc15.tar.gz bcm5719-llvm-cacde7df6dc9d8c94401b7e26714dbd7383bcc15.zip |
Enable llgs to build against experimental Android AOSP lldb/llvm/clang/compiler-rt repos.
See http://reviews.llvm.org/D5495 for more details.
These are changes that are part of an effort to support building llgs, within the AOSP source tree, using the Android.mk
build system, when using the llvm/clang/lldb git repos from AOSP replaced with the experimental ones currently in
github.com/tfiala/aosp-{llvm,clang,lldb,compiler-rt}.
llvm-svn: 218568
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp index 8f626be0581..5bc8c51d74c 100644 --- a/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp @@ -17,7 +17,9 @@ #include <unistd.h> #include <elf.h> #include <sys/personality.h> +#ifndef __ANDROID__ #include <sys/procfs.h> +#endif #include <sys/ptrace.h> #include <sys/uio.h> #include <sys/socket.h> @@ -39,11 +41,16 @@ #include "lldb/Target/RegisterContext.h" #include "lldb/Utility/PseudoTerminal.h" -#include "POSIXThread.h" +#include "Plugins/Process/POSIX/POSIXThread.h" #include "ProcessLinux.h" -#include "ProcessPOSIXLog.h" +#include "Plugins/Process/POSIX/ProcessPOSIXLog.h" #include "ProcessMonitor.h" +#ifdef __ANDROID__ +#define __ptrace_request int +#define PT_DETACH PTRACE_DETACH +#endif + #define DEBUG_PTRACE_MAXBYTES 20 // Support ptrace extensions even when compiled without required kernel support |