debugger: introduce an explicit detach action

This commit is contained in:
hjk
2009-05-07 15:20:44 +02:00
parent d42a7e407e
commit 5bcc81a61e
7 changed files with 55 additions and 11 deletions

View File

@@ -1245,15 +1245,6 @@ void DebuggerManager::setStatus(int status)
const bool ready = status == DebuggerInferiorStopped
&& startMode() != AttachCore;
// FIXME
// m_startExternalAction->setEnabled(!started && !starting);
// m_attachExternalAction->setEnabled(!started && !starting);
//#ifdef Q_OS_WIN
// m_attachCoreAction->setEnabled(false);
//#else
// m_attachCoreAction->setEnabled(!started && !starting);
//#endif
// m_attachRemoteAction->setEnabled(!started && !starting);
m_watchAction->setEnabled(ready);
m_breakAction->setEnabled(true);
@@ -1316,6 +1307,12 @@ void DebuggerManager::continueExec()
m_engine->continueInferior();
}
void DebuggerManager::detachDebugger()
{
if (m_engine)
m_engine->detachDebugger();
}
void DebuggerManager::interruptDebuggingRequest()
{
if (Debugger::Constants::Internal::debug)