debugger: go to a defined state if we can't talk to the inferior anymore

This commit is contained in:
hjk
2010-01-14 15:41:20 +01:00
parent dd118df7cb
commit e2e29587a1

View File

@@ -771,8 +771,12 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
if (cmd.flags & LosesChild)
setState(InferiorStopping_Kill);
debugMessage(_("CHILD ALREADY BEING INTERRUPTED"));
// FIXME
shutdown();
} else if (state() == InferiorStopping_Kill) {
debugMessage(_("CHILD ALREADY BEING INTERRUPTED (KILL PENDING)"));
// FIXME
shutdown();
} else if (state() == InferiorRunningRequested) {
if (cmd.flags & LosesChild)
setState(InferiorRunningRequested_Kill);