From 2fdc1cf0bfebe22ae4c901c652e5dad1d136c79d Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 7 Oct 2009 09:27:02 +0200 Subject: [PATCH] debugger: escape from an unexpected state --- src/plugins/debugger/gdb/plaingdbadapter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/debugger/gdb/plaingdbadapter.cpp b/src/plugins/debugger/gdb/plaingdbadapter.cpp index a65381920b6..a71039a3011 100644 --- a/src/plugins/debugger/gdb/plaingdbadapter.cpp +++ b/src/plugins/debugger/gdb/plaingdbadapter.cpp @@ -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)); -- GitLab