Symbian: Fix CODA shutdown after debuggee crash.

This commit is contained in:
Friedemann Kleint
2011-03-01 09:58:00 +01:00
parent de9a5c9efc
commit 5ddf7d3c40
2 changed files with 8 additions and 3 deletions

View File

@@ -988,10 +988,11 @@ void CodaGdbAdapter::sendRunControlTerminateCommand()
void CodaGdbAdapter::handleRunControlTerminate(const CodaCommandResult &)
{
QString msg = QString::fromLatin1("CODA disconnected");
const bool emergencyShutdown = m_gdbProc.state() != QProcess::Running;
const bool emergencyShutdown = m_gdbProc.state() != QProcess::Running
&& state() != EngineShutdownOk;
if (emergencyShutdown)
msg += QString::fromLatin1(" (emergency shutdown");
logMessage(msg);
msg += QString::fromLatin1(" (emergency shutdown)");
logMessage(msg, LogMisc);
if (emergencyShutdown) {
cleanup();
m_engine->notifyAdapterShutdownOk();