OSDN Git Service

Win: Try to start debug listener
authorTobias Hunger <tobias.hunger@nokia.com>
Tue, 19 Apr 2011 11:52:48 +0000 (13:52 +0200)
committerTobias Hunger <tobias.hunger@nokia.com>
Tue, 19 Apr 2011 11:54:15 +0000 (13:54 +0200)
Try to start debug listener if it is not yet running. This can
happen when e.g. a external debug listener was closed in the
meantime.

src/plugins/projectexplorer/winguiprocess.cpp

index fb410dd..8dd79ed 100644 (file)
@@ -104,6 +104,9 @@ void WinGuiProcess::run()
     m_exitCode = 0;
     bool started = false;
 
+    if (!WinDebugInterface::instance()->isRunning())
+        WinDebugInterface::instance()->start(); // Try to start listener again...
+
     do {
         QString pcmd, pargs;
         QtcProcess::prepareCommand(m_program, m_args, &pcmd, &pargs, &m_environment, &m_workingDir);
@@ -124,6 +127,9 @@ void WinGuiProcess::run()
             break;
         }
 
+        if (!WinDebugInterface::instance()->isRunning())
+            emit processMessage(msgWinCannotRetrieveDebuggingOutput(), false);
+
         WaitForSingleObject(m_pid->hProcess, INFINITE);
     } while (false);