forked from qt-creator/qt-creator
debugger: escape from an unexpected state
This commit is contained in:
@@ -257,6 +257,11 @@ void PlainGdbAdapter::shutdown()
|
|||||||
m_engine->postCommand(_("kill"), CB(handleKill));
|
m_engine->postCommand(_("kill"), CB(handleKill));
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
case InferiorShuttingDown:
|
||||||
|
// FIXME: How can we end up here?
|
||||||
|
QTC_ASSERT(false, qDebug() << state());
|
||||||
|
// Fall through.
|
||||||
|
|
||||||
case InferiorShutDown:
|
case InferiorShutDown:
|
||||||
setState(AdapterShuttingDown);
|
setState(AdapterShuttingDown);
|
||||||
m_engine->postCommand(_("-gdb-exit"), CB(handleExit));
|
m_engine->postCommand(_("-gdb-exit"), CB(handleExit));
|
||||||
|
|||||||
Reference in New Issue
Block a user