Debugger: Properly handle spontaneous stop on InferiorRunRequested

We need to transition into InferiorRunOk first.

Change-Id: Iea4770f70979a4700a3bb350376526bbe8c07952
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2018-02-12 16:07:15 +01:00
parent 2132ed8c96
commit 76c12becad

View File

@@ -1331,6 +1331,7 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
// be handled in the result handler.
// -- or --
// *stopped arriving earlier than ^done response to an -exec-step
notifyInferiorRunOk();
notifyInferiorSpontaneousStop();
} else if (state() == InferiorStopOk) {
// That's expected.