forked from qt-creator/qt-creator
CDB: Make it possible to kill the cdb...
...when the cdb got hung up. Handle abort like in almost any debugger engine, first kindly ask to quit. If this doesn't work kill the debugger process. Task-number: QTCREATORBUG-13173 Change-Id: I1ddc98b1ffe00342c96d104c16099b500e52bc07 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -954,6 +954,19 @@ void CdbEngine::shutdownEngine()
|
||||
interruptInferior();
|
||||
}
|
||||
|
||||
void CdbEngine::abortDebugger()
|
||||
{
|
||||
if (targetState() == DebuggerFinished) {
|
||||
// We already tried. Try harder.
|
||||
showMessage(QLatin1String("ABORTING DEBUGGER. SECOND TIME."));
|
||||
m_process.kill();
|
||||
} else {
|
||||
// Be friendly the first time. This will change targetState().
|
||||
showMessage(QLatin1String("ABORTING DEBUGGER. FIRST TIME."));
|
||||
quitDebugger();
|
||||
}
|
||||
}
|
||||
|
||||
void CdbEngine::processFinished()
|
||||
{
|
||||
if (debug)
|
||||
|
||||
Reference in New Issue
Block a user