[Lldb-commits] [lldb] r156883 - /lldb/trunk/tools/debugserver/source/RNBSocket.cpp

Jason Molenda jmolenda at apple.com
Tue May 15 17:36:21 PDT 2012


Author: jmolenda
Date: Tue May 15 19:36:21 2012
New Revision: 156883

URL: http://llvm.org/viewvc/llvm-project?rev=156883&view=rev
Log:
Change lockdown API use in RNBSocket::ConnectToService.
<rdar://problem/10800927> 

Modified:
    lldb/trunk/tools/debugserver/source/RNBSocket.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBSocket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBSocket.cpp?rev=156883&r1=156882&r2=156883&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBSocket.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBSocket.cpp Tue May 15 19:36:21 2012
@@ -189,10 +189,10 @@
     // Disconnect from any previous connections
     Disconnect(false);
 
-    m_fd = ::lockdown_checkin (NULL, NULL);
-    if (m_fd == -1)
+    if (::lockdown_secure_checkin (&m_fd, NULL, NULL, NULL) != kLDESuccess)
     {
-        DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_checkin(NULL, NULL) failed");
+        DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_secure_checkin(&m_fd, NULL, NULL, NULL) failed");
+        m_fd = -1;
         return rnb_not_connected;
     }
     m_fd_from_lockdown = true;





More information about the lldb-commits mailing list