Debugger: Make second call to abort LLDB more lethal

Change-Id: I66cfb1e01193c57e06aebeaa8defa11809e24c50
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-11-06 14:23:08 +01:00
parent 57c098142c
commit 25ec26bcf3
2 changed files with 14 additions and 0 deletions

View File

@@ -126,6 +126,19 @@ void LldbEngine::shutdownEngine()
m_lldbProc.kill();
}
void LldbEngine::abortDebugger()
{
if (targetState() == DebuggerFinished) {
// We already tried. Try harder.
showMessage(_("ABORTING DEBUGGER. SECOND TIME."));
m_lldbProc.kill();
} else {
// Be friendly the first time. This will change targetState().
showMessage(_("ABORTING DEBUGGER. FIRST TIME."));
quitDebugger();
}
}
void LldbEngine::setupEngine()
{
QTC_ASSERT(state() == EngineSetupRequested, qDebug() << state());