[Lldb-commits] [lldb] r232713 - Fix error handling in CMIDriver::DoMainLoop after r215223 (MI)

Ilia K ki.stfu at gmail.com
Thu Mar 19 01:54:17 PDT 2015


Author: ki.stfu
Date: Thu Mar 19 03:54:17 2015
New Revision: 232713

URL: http://llvm.org/viewvc/llvm-project?rev=232713&view=rev
Log:
Fix error handling in CMIDriver::DoMainLoop after r215223 (MI)


Modified:
    lldb/trunk/tools/lldb-mi/MIDriver.cpp

Modified: lldb/trunk/tools/lldb-mi/MIDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MIDriver.cpp?rev=232713&r1=232712&r2=232713&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MIDriver.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MIDriver.cpp Thu Mar 19 03:54:17 2015
@@ -529,18 +529,19 @@ CMIDriver::DoMainLoop(void)
     if (!StartWorkerThreads())
         return MIstatus::failure;
 
-    // App is not quitting currently
-    m_bExitApp = false;
-
     if (HaveExecutableFileNamePathOnCmdLine())
     {
         if (!LocalDebugSessionStartupExecuteCommands())
         {
+            StopWorkerThreads();
             SetErrorDescription(MIRSRC(IDS_MI_INIT_ERR_LOCAL_DEBUG_SESSION));
             return MIstatus::failure;
         }
     }
 
+    // App is not quitting currently
+    m_bExitApp = false;
+
     // While the app is active
     while (!m_bExitApp)
     {





More information about the lldb-commits mailing list