debugger: make attach to running process stop the process (again)

This commit is contained in:
hjk
2010-11-23 12:31:47 +01:00
parent 7812c958fa
commit 0d3ca6da16
3 changed files with 34 additions and 23 deletions

View File

@@ -78,10 +78,11 @@ void AttachGdbAdapter::setupInferior()
void AttachGdbAdapter::runEngine()
{
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
m_engine->notifyEngineRunAndInferiorStopOk();
m_engine->continueInferiorInternal();
m_engine->showStatusMessage(tr("Attached to process %1.")
.arg(m_engine->inferiorPid()));
m_engine->notifyEngineRunAndInferiorStopOk();
GdbMi data;
m_engine->handleStop0(data);
}
void AttachGdbAdapter::handleAttach(const GdbResponse &response)