forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user