GDB: Handle ill engine's situation

This commit is contained in:
Pawel Polanski
2011-03-21 16:34:33 +01:00
parent ed070ff235
commit a2ec23c0e9

View File

@@ -4736,7 +4736,10 @@ void GdbEngine::handleAdapterCrashed(const QString &msg)
// Don't bother with state transitions - this can happen in any state and
// the end result is always the same, so it makes little sense to find a
// "path" which does not assert.
notifyEngineSetupFailed();
if (state() == EngineSetupRequested)
notifyEngineSetupFailed();
else
notifyEngineIll();
// No point in being friendly here ...
gdbProc()->kill();