Debugger: Report done when terminal *process* is stopped

Do not wait until the stub exits.

Task-number: QTCREATORBUG-19056
Change-Id: I7c4c3438c960a6e418ccd6c9d96d01d9621e9b02
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2017-10-09 16:17:41 +03:00
committed by Orgad Shaneh
parent 3116d901ee
commit e098134d43
2 changed files with 2 additions and 8 deletions

View File

@@ -182,8 +182,8 @@ TerminalRunner::TerminalRunner(DebuggerRunTool *debugger)
this, &TerminalRunner::stubError); this, &TerminalRunner::stubError);
connect(&m_stubProc, &ConsoleProcess::processStarted, connect(&m_stubProc, &ConsoleProcess::processStarted,
this, &TerminalRunner::stubStarted); this, &TerminalRunner::stubStarted);
connect(&m_stubProc, &ConsoleProcess::stubStopped, connect(&m_stubProc, &ConsoleProcess::processStopped,
this, &TerminalRunner::stubExited); this, [this] { reportDone(); });
} }
void TerminalRunner::start() void TerminalRunner::start()
@@ -224,11 +224,6 @@ void TerminalRunner::stubError(const QString &msg)
reportFailure(msg); reportFailure(msg);
} }
void TerminalRunner::stubExited()
{
reportStopped();
}
} // namespace Internal } // namespace Internal
} // namespace Debugger } // namespace Debugger

View File

@@ -82,7 +82,6 @@ private:
void stop() final; void stop() final;
void stubStarted(); void stubStarted();
void stubExited();
void stubError(const QString &msg); void stubError(const QString &msg);
Utils::ConsoleProcess m_stubProc; Utils::ConsoleProcess m_stubProc;