forked from qt-creator/qt-creator
debugger: go to a defined state if we can't talk to the inferior anymore
This commit is contained in:
@@ -771,8 +771,12 @@ void GdbEngine::postCommandHelper(const GdbCommand &cmd)
|
|||||||
if (cmd.flags & LosesChild)
|
if (cmd.flags & LosesChild)
|
||||||
setState(InferiorStopping_Kill);
|
setState(InferiorStopping_Kill);
|
||||||
debugMessage(_("CHILD ALREADY BEING INTERRUPTED"));
|
debugMessage(_("CHILD ALREADY BEING INTERRUPTED"));
|
||||||
|
// FIXME
|
||||||
|
shutdown();
|
||||||
} else if (state() == InferiorStopping_Kill) {
|
} else if (state() == InferiorStopping_Kill) {
|
||||||
debugMessage(_("CHILD ALREADY BEING INTERRUPTED (KILL PENDING)"));
|
debugMessage(_("CHILD ALREADY BEING INTERRUPTED (KILL PENDING)"));
|
||||||
|
// FIXME
|
||||||
|
shutdown();
|
||||||
} else if (state() == InferiorRunningRequested) {
|
} else if (state() == InferiorRunningRequested) {
|
||||||
if (cmd.flags & LosesChild)
|
if (cmd.flags & LosesChild)
|
||||||
setState(InferiorRunningRequested_Kill);
|
setState(InferiorRunningRequested_Kill);
|
||||||
|
Reference in New Issue
Block a user