debugger: escape from an unexpected state

This commit is contained in:
hjk
2009-10-07 09:27:02 +02:00
parent 91f8a2992b
commit 2fdc1cf0bf

View File

@@ -257,6 +257,11 @@ void PlainGdbAdapter::shutdown()
m_engine->postCommand(_("kill"), CB(handleKill));
return;
case InferiorShuttingDown:
// FIXME: How can we end up here?
QTC_ASSERT(false, qDebug() << state());
// Fall through.
case InferiorShutDown:
setState(AdapterShuttingDown);
m_engine->postCommand(_("-gdb-exit"), CB(handleExit));