Debugger: Cleaner shutdown of LLDB/python machinery

Change-Id: I482e78c352066ddd05e96199fd8ead088e3e9f58
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-05-29 15:38:49 +02:00
parent 31634a07f4
commit b75209d653
2 changed files with 23 additions and 10 deletions

View File

@@ -119,7 +119,7 @@ void LldbEngine::runCommand(const Command &command)
void LldbEngine::shutdownInferior()
{
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
notifyInferiorShutdownOk();
runCommand(Command("shutdownInferior"));
}
void LldbEngine::shutdownEngine()
@@ -1018,6 +1018,14 @@ void LldbEngine::refreshState(const GdbMi &reportedState)
notifyEngineRunAndInferiorRunOk();
else if (newState == "enginerunandinferiorstopok")
notifyEngineRunAndInferiorStopOk();
else if (newState == "inferiorshutdownok")
notifyInferiorShutdownOk();
else if (newState == "inferiorshutdownfailed")
notifyInferiorShutdownFailed();
else if (newState == "engineshutdownok")
notifyEngineShutdownOk();
else if (newState == "engineshutdownfailed")
notifyEngineShutdownFailed();
else if (newState == "inferiorexited")
notifyInferiorExited();
}