dawn created this revision.
dawn added reviewers: jasonmolenda, clayborg.
dawn added a subscriber: lldb-commits.
dawn set the repository for this revision to rL LLVM.
This patch adds a test for __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ around
the code which requires 10.10 support to link. Without this, lldb gets
unresolved references to _csr_check and _rootless_allows_task_for_pid. This
patch resolves http://reviews.llvm.org/rL243511.
Repository:
rL LLVM
http://reviews.llvm.org/D11668
Files:
tools/debugserver/source/RNBRemote.cpp
Index: tools/debugserver/source/RNBRemote.cpp
===================================================================
--- tools/debugserver/source/RNBRemote.cpp
+++ tools/debugserver/source/RNBRemote.cpp
@@ -141,7 +141,7 @@
extern void ASLLogCallback(void *baton, uint32_t flags, const char *format,
va_list args);
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >=
101000)
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
extern "C" {
#define CS_OPS_STATUS 0 /* return status */
@@ -3692,7 +3692,7 @@
else
m_ctx.LaunchStatus().SetErrorString("attach failed");
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >=
101000)
if (pid_attaching_to == INVALID_NUB_PROCESS &&
!attach_name.empty())
{
pid_attaching_to = DNBProcessGetPIDByName
(attach_name.c_str());
Index: tools/debugserver/source/RNBRemote.cpp
===================================================================
--- tools/debugserver/source/RNBRemote.cpp
+++ tools/debugserver/source/RNBRemote.cpp
@@ -141,7 +141,7 @@
extern void ASLLogCallback(void *baton, uint32_t flags, const char *format, va_list args);
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
extern "C" {
#define CS_OPS_STATUS 0 /* return status */
@@ -3692,7 +3692,7 @@
else
m_ctx.LaunchStatus().SetErrorString("attach failed");
-#if defined (__APPLE__)
+#if defined (__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
if (pid_attaching_to == INVALID_NUB_PROCESS && !attach_name.empty())
{
pid_attaching_to = DNBProcessGetPIDByName (attach_name.c_str());
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits