Debugger: Be a bit more explicit about states while quitting

... and make sure to use notifyInferiorIll only in states
where the inferior might still be alive.

Change-Id: Ie002cd8b70cc610b15bab00554c027494a0ad2e3
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2024-03-12 17:45:14 +01:00
parent a2ee1043c7
commit b33fee0ded

View File

@@ -2017,11 +2017,16 @@ void DebuggerEngine::quitDebugger()
case EngineShutdownRequested:
case InferiorShutdownRequested:
break;
case EngineRunFailed:
case DebuggerFinished:
case DebuggerNotReady:
case EngineSetupFailed:
case InferiorShutdownFinished:
case EngineRunFailed:
case EngineShutdownFinished:
case DebuggerFinished:
break;
default:
case InferiorRunRequested:
case InferiorRunFailed:
case InferiorStopRequested:
// FIXME: We should disable the actions connected to that.
notifyInferiorIll();
break;