forked from qt-creator/qt-creator
Debugger: Combine the EngineShutdown{Ok,Failed} states
... into a EngineShutdownFinished. They were never handled differently, and the only option is to proceed to DebuggerFinished anyway. So simplify the state machine a bit. Change-Id: Ied3be86fff6750abca578dc6788e4be1d895692b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -167,7 +167,7 @@ void LldbEngine::shutdownEngine()
|
||||
{
|
||||
QTC_ASSERT(state() == EngineShutdownRequested, qDebug() << state());
|
||||
m_lldbProc.kill();
|
||||
notifyEngineShutdownOk();
|
||||
notifyEngineShutdownFinished();
|
||||
}
|
||||
|
||||
void LldbEngine::abortDebuggerProcess()
|
||||
@@ -858,10 +858,8 @@ void LldbEngine::handleStateNotification(const GdbMi &reportedState)
|
||||
notifyInferiorShutdownOk();
|
||||
else if (newState == "inferiorshutdownfailed")
|
||||
notifyInferiorShutdownFailed();
|
||||
else if (newState == "engineshutdownok")
|
||||
notifyEngineShutdownOk();
|
||||
else if (newState == "engineshutdownfailed")
|
||||
notifyEngineShutdownFailed();
|
||||
else if (newState == "engineshutdownfinished")
|
||||
notifyEngineShutdownFinished();
|
||||
else if (newState == "inferiorexited")
|
||||
notifyInferiorExited();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user