Commit 2fdc1cf0 authored by hjk's avatar hjk
Browse files

debugger: escape from an unexpected state

parent 91f8a299
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment