forked from qt-creator/qt-creator
debugger: make the selection of detach or kill explicit
Change-Id: I6f80047ad229e0be851b06a277ab2f899757828f Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1893,13 +1893,15 @@ void GdbEngine::shutdownInferior()
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
|
||||
m_commandsToRunOnTemporaryBreak.clear();
|
||||
m_gdbAdapter->shutdownInferior();
|
||||
}
|
||||
|
||||
void GdbEngine::defaultInferiorShutdown(const char *cmd)
|
||||
{
|
||||
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
|
||||
postCommand(cmd, NeedsStop | LosesChild, CB(handleInferiorShutdown));
|
||||
switch (startParameters().closeMode) {
|
||||
case KillAtClose:
|
||||
postCommand("kill", NeedsStop | LosesChild, CB(handleInferiorShutdown));
|
||||
break;
|
||||
case DetachAtClose:
|
||||
postCommand("detach", NeedsStop | LosesChild, CB(handleInferiorShutdown));
|
||||
break;
|
||||
}
|
||||
QTC_ASSERT(false, notifyInferiorShutdownFailed());
|
||||
}
|
||||
|
||||
void GdbEngine::handleInferiorShutdown(const GdbResponse &response)
|
||||
|
||||
Reference in New Issue
Block a user