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/Host/linux/Host.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/Host/linux/Host.cpp')
-rw-r--r-- | lldb/source/Host/linux/Host.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index 3d90fbb16c5..175624dd3e5 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -14,7 +14,9 @@ #include <sys/stat.h> #include <dirent.h> #include <fcntl.h> +#ifndef __ANDROID__ #include <execinfo.h> +#endif // C++ Includes // Other libraries and framework includes @@ -375,6 +377,7 @@ Host::GetProcessInfo (lldb::pid_t pid, ProcessInstanceInfo &process_info) void Host::Backtrace (Stream &strm, uint32_t max_frames) { +#ifndef __ANDROID__ if (max_frames > 0) { std::vector<void *> frame_buffer (max_frames, NULL); @@ -388,6 +391,9 @@ Host::Backtrace (Stream &strm, uint32_t max_frames) ::free (strs); } } +#else + assert(false && "::backtrace() not supported on Android"); +#endif } size_t |