debugger: fix 'Detach debugger' action

This commit is contained in:
hjk
2009-09-30 13:07:14 +02:00
parent 163150e3e5
commit 3b280a3ad3
3 changed files with 9 additions and 6 deletions

View File

@@ -1444,7 +1444,11 @@ void GdbEngine::shutdown()
void GdbEngine::detachDebugger()
{
QTC_ASSERT(startMode() == AttachExternal, /**/);
QTC_ASSERT(state() == InferiorStopped, /**/);
QTC_ASSERT(startMode() != AttachCore, /**/);
postCommand(_("detach"));
setState(InferiorShuttingDown);
setState(InferiorShutDown);
shutdown();
}