Debugger[CDB]: Use standard shutdown path within QML/CPP debugging.

As the InferiorShutdown-State is required to synchronize the
engines.

Task-number: QTCREATORBUG-4026
Initial-patch-by: Kai Köhne <kai.koehne@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-03-14 11:43:33 +01:00
parent 2ac4f671b9
commit 53cbf5dfae

View File

@@ -940,8 +940,15 @@ void CdbEngine::processFinished()
notifyEngineShutdownOk();
}
} else {
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyEngineSpontaneousShutdown")
notifyEngineSpontaneousShutdown();
// The QML/CPP engine relies on the standard sequence of InferiorShutDown,etc.
// Otherwise, we take a shortcut.
if (isSlaveEngine()) {
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyInferiorExited")
notifyInferiorExited();
} else {
STATE_DEBUG(state(), Q_FUNC_INFO, __LINE__, "notifyEngineSpontaneousShutdown")
notifyEngineSpontaneousShutdown();
}
}
}