Commit e2e29587 authored by hjk's avatar hjk

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

parent dd118df7
......@@ -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);
......
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