llvm: lldb: no execinfo with musl.
This commit is contained in:
parent
0dd525a0de
commit
e9290cc869
2 changed files with 30 additions and 1 deletions
|
@ -40,3 +40,32 @@
|
||||||
#define __ptrace_request int
|
#define __ptrace_request int
|
||||||
#define PT_DETACH PTRACE_DETACH
|
#define PT_DETACH PTRACE_DETACH
|
||||||
#endif
|
#endif
|
||||||
|
--- source/Host/linux/Host.cpp.orig 2015-05-07 11:59:26.524631749 +0200
|
||||||
|
+++ source/Host/linux/Host.cpp 2015-05-07 12:00:07.852582643 +0200
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <dirent.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
-#ifndef __ANDROID__
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#include <execinfo.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@@ -380,7 +380,7 @@ Host::GetProcessInfo (lldb::pid_t pid, P
|
||||||
|
void
|
||||||
|
Host::Backtrace (Stream &strm, uint32_t max_frames)
|
||||||
|
{
|
||||||
|
-#ifndef __ANDROID__
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
if (max_frames > 0)
|
||||||
|
{
|
||||||
|
std::vector<void *> frame_buffer (max_frames, NULL);
|
||||||
|
@@ -395,7 +395,7 @@ Host::Backtrace (Stream &strm, uint32_t
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
- assert(false && "::backtrace() not supported on Android");
|
||||||
|
+ assert(false && "::backtrace() only support with glibc");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Template file for 'llvm'
|
# Template file for 'llvm'
|
||||||
pkgname=llvm
|
pkgname=llvm
|
||||||
version=3.6.0
|
version=3.6.0
|
||||||
wrksrc="llvm-${version}.src"
|
wrksrc="llvm-${version}.src"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue