forked from qt-creator/qt-creator
Debugger: Directly pass from engine to inferior setup in all engines
This removes the setupSlaveInferior() synchronization point which wasn't really needed anymore as it was always triggered in response to a notifyEngineSetupOk() of the master engine. Change-Id: I24faec36b180fa961e10dfd88fe4d874f7310140 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -230,7 +230,6 @@ public:
|
||||
}
|
||||
|
||||
void doSetupEngine();
|
||||
void doSetupInferior();
|
||||
void doRunEngine();
|
||||
void doShutdownEngine();
|
||||
void doShutdownInferior();
|
||||
@@ -691,24 +690,13 @@ void DebuggerEngine::notifyEngineSetupOk()
|
||||
showMessage("NOTE: ENGINE SETUP OK");
|
||||
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << this << state());
|
||||
setState(EngineSetupOk);
|
||||
if (isMasterEngine() && runTool()) {
|
||||
if (isMasterEngine() && runTool())
|
||||
runTool()->reportStarted();
|
||||
d->doSetupInferior();
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerEngine::setupSlaveInferior()
|
||||
{
|
||||
QTC_CHECK(state() == EngineSetupOk);
|
||||
d->doSetupInferior();
|
||||
}
|
||||
|
||||
void DebuggerEnginePrivate::doSetupInferior()
|
||||
{
|
||||
m_engine->setState(InferiorSetupRequested);
|
||||
m_engine->showMessage("CALL: SETUP INFERIOR");
|
||||
m_progress.setProgressValue(250);
|
||||
m_engine->setupInferior();
|
||||
setState(InferiorSetupRequested);
|
||||
showMessage("CALL: SETUP INFERIOR");
|
||||
d->m_progress.setProgressValue(250);
|
||||
setupInferior();
|
||||
}
|
||||
|
||||
void DebuggerEngine::notifyInferiorSetupFailed()
|
||||
|
||||
Reference in New Issue
Block a user