[Lldb-commits] [lldb] r200732 - If we fail to attach, return an error rather than returning the success or failure

Jim Ingham jingham at apple.com
Mon Feb 3 17:28:36 PST 2014


Author: jingham
Date: Mon Feb  3 19:28:36 2014
New Revision: 200732

URL: http://llvm.org/viewvc/llvm-project?rev=200732&view=rev
Log:
If we fail to attach, return an error rather than returning the success or failure
of sending the error packet.

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=200732&r1=200731&r2=200732&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Mon Feb  3 19:28:36 2014
@@ -3011,7 +3011,9 @@ RNBRemote::HandlePacket_v (const char *p
                 m_ctx.LaunchStatus().SetErrorString(err_str);
             else
                 m_ctx.LaunchStatus().SetErrorString("attach failed");
-            return SendPacket ("E01");  // E01 is our magic error value for attach failed.
+            SendPacket ("E01");  // E01 is our magic error value for attach failed.
+            DNBLogError ("Attach failed: \"%s\".", err_str);
+            return rnb_err;
         }
     }
 





More information about the lldb-commits mailing list