forked from qt-creator/qt-creator
Debugger: Centralize abort handling
... and apply even more force on the second trying by forcing ramp down of the runControl itself instead of hoping that it would pick up hints. Change-Id: I9d0f4130cb9a137b91c9fa81c3d255f236f98be0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -160,17 +160,9 @@ void LldbEngine::shutdownEngine()
|
||||
notifyEngineShutdownOk();
|
||||
}
|
||||
|
||||
void LldbEngine::abortDebugger()
|
||||
void LldbEngine::abortDebuggerProcess()
|
||||
{
|
||||
if (isDying()) {
|
||||
// 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();
|
||||
}
|
||||
m_lldbProc.kill();
|
||||
}
|
||||
|
||||
void LldbEngine::setupEngine()
|
||||
|
||||
Reference in New Issue
Block a user