llvm: lldb: fix ptrace handling on musl (2).
This commit is contained in:
parent
829faea432
commit
9624f721ba
2 changed files with 13 additions and 2 deletions
|
@ -25,7 +25,18 @@
|
||||||
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
||||||
|
|
||||||
-#ifdef __ANDROID__
|
-#ifdef __ANDROID__
|
||||||
+#if defined(__ANDROID__) || !defined(__GLIBC__)
|
+#ifndef __GLIBC__
|
||||||
|
#define __ptrace_request int
|
||||||
|
#define PT_DETACH PTRACE_DETACH
|
||||||
|
#endif
|
||||||
|
--- source/Plugins/Process/Linux/ProcessMonitor.cpp.orig 2015-05-07 11:48:17.954425191 +0200
|
||||||
|
+++ source/Plugins/Process/Linux/ProcessMonitor.cpp 2015-05-07 11:48:42.097396679 +0200
|
||||||
|
@@ -51,7 +51,7 @@
|
||||||
|
#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
|
||||||
|
#include "ProcessMonitor.h"
|
||||||
|
|
||||||
|
-#ifdef __ANDROID__
|
||||||
|
+#ifndef __GLIBC__
|
||||||
#define __ptrace_request int
|
#define __ptrace_request int
|
||||||
#define PT_DETACH PTRACE_DETACH
|
#define PT_DETACH PTRACE_DETACH
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue