debugger: make the selection of detach or kill explicit

Change-Id: I6f80047ad229e0be851b06a277ab2f899757828f
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-03-26 16:03:25 +02:00
committed by hjk
parent bbd5d2ddfe
commit 95e2c9ca57
18 changed files with 25 additions and 48 deletions

View File

@@ -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)