[Lldb-commits] [lldb] r153790 - /lldb/trunk/source/Commands/CommandObjectProcess.cpp

Greg Clayton gclayton at apple.com
Fri Mar 30 17:10:31 PDT 2012


Author: gclayton
Date: Fri Mar 30 19:10:30 2012
New Revision: 153790

URL: http://llvm.org/viewvc/llvm-project?rev=153790&view=rev
Log:
Patch from Viktor Kutuzov: delete the temporary process we created when "process connect" fails.


Modified:
    lldb/trunk/source/Commands/CommandObjectProcess.cpp

Modified: lldb/trunk/source/Commands/CommandObjectProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectProcess.cpp?rev=153790&r1=153789&r2=153790&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectProcess.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectProcess.cpp Fri Mar 30 19:10:30 2012
@@ -880,6 +880,7 @@
                 {
                     result.AppendError(error.AsCString("Remote connect failed"));
                     result.SetStatus (eReturnStatusFailed);
+                    target_sp->DeleteCurrentProcess();
                     return false;
                 }
             }





More information about the lldb-commits mailing list