Commit 36709fd2 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[CDB]: Do not kill debuggee when aborting attach to running.

Reviewed-by: hjk
parent 88a36fe3
......@@ -563,6 +563,8 @@ void CdbEngine::processTerminated(unsigned long exitCode)
bool CdbEnginePrivate::endInferior(bool detachOnly, QString *errorMessage)
{
if (debugCDBExecution)
qDebug("endInferior detach=%d, %s", detachOnly, DebuggerEngine::stateName(m_engine->state()));
// Are we running
switch (m_engine->state()) {
case InferiorRunRequested:
......@@ -572,6 +574,7 @@ bool CdbEnginePrivate::endInferior(bool detachOnly, QString *errorMessage)
case InferiorStopOk:
case InferiorStopFailed:
case InferiorShutdownRequested:
case EngineShutdownRequested: // Forwarded when choosing 'Abort...' an attached process.
break;
default:
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment