[Lldb-commits] [lldb] r243715 - Fix build of lldb on Mavericks after svn rev.243511.
Dawn Perchik
dawn at burble.org
Thu Jul 30 17:26:47 PDT 2015
Author: dperchik
Date: Thu Jul 30 19:26:46 2015
New Revision: 243715
URL: http://llvm.org/viewvc/llvm-project?rev=243715&view=rev
Log:
Fix build of lldb on Mavericks after svn rev.243511.
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.
Reviewed by: jasonmolenda
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11668
Modified:
lldb/trunk/tools/debugserver/source/RNBRemote.cpp
Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=243715&r1=243714&r2=243715&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Thu Jul 30 19:26:46 2015
@@ -141,7 +141,7 @@ decode_uint64 (const char *p, int base,
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 @@ RNBRemote::HandlePacket_v (const char *p
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());
More information about the lldb-commits
mailing list