forked from qt-creator/qt-creator
Debugger: Re-enable some shutdown cleanup code
It is still needed with LLDB. Task-number: QTCREATORBUG-18723 Change-Id: If78dcbf8e074add969c403c37193c9f4ce857625 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
@@ -1030,39 +1030,37 @@ RunControl *DebuggerEnginePrivate::runControl() const
|
|||||||
|
|
||||||
void DebuggerEngine::notifyEngineIll()
|
void DebuggerEngine::notifyEngineIll()
|
||||||
{
|
{
|
||||||
runControl()->initiateStop();
|
|
||||||
return;
|
|
||||||
//#ifdef WITH_BENCHMARK
|
//#ifdef WITH_BENCHMARK
|
||||||
// CALLGRIND_STOP_INSTRUMENTATION;
|
// CALLGRIND_STOP_INSTRUMENTATION;
|
||||||
// CALLGRIND_DUMP_STATS;
|
// CALLGRIND_DUMP_STATS;
|
||||||
//#endif
|
//#endif
|
||||||
// showMessage("NOTE: ENGINE ILL ******");
|
showMessage("NOTE: ENGINE ILL ******");
|
||||||
// runTool()->startDying();
|
runTool()->startDying();
|
||||||
// d->m_lastGoodState = d->m_state;
|
d->m_lastGoodState = d->m_state;
|
||||||
// switch (state()) {
|
switch (state()) {
|
||||||
// case InferiorRunRequested:
|
case InferiorRunRequested:
|
||||||
// case InferiorRunOk:
|
case InferiorRunOk:
|
||||||
// // The engine does not look overly ill right now, so attempt to
|
// The engine does not look overly ill right now, so attempt to
|
||||||
// // properly interrupt at least once. If that fails, we are on the
|
// properly interrupt at least once. If that fails, we are on the
|
||||||
// // shutdown path due to d->m_targetState anyways.
|
// shutdown path due to d->m_targetState anyways.
|
||||||
// setState(InferiorStopRequested, true);
|
setState(InferiorStopRequested, true);
|
||||||
// showMessage("ATTEMPT TO INTERRUPT INFERIOR");
|
showMessage("ATTEMPT TO INTERRUPT INFERIOR");
|
||||||
// interruptInferior();
|
interruptInferior();
|
||||||
// break;
|
break;
|
||||||
// case InferiorStopRequested:
|
case InferiorStopRequested:
|
||||||
// notifyInferiorStopFailed();
|
notifyInferiorStopFailed();
|
||||||
// break;
|
break;
|
||||||
// case InferiorStopOk:
|
case InferiorStopOk:
|
||||||
// showMessage("FORWARDING STATE TO InferiorShutdownFailed");
|
showMessage("FORWARDING STATE TO InferiorShutdownFailed");
|
||||||
// setState(InferiorShutdownFailed, true);
|
setState(InferiorShutdownFailed, true);
|
||||||
// if (isMasterEngine())
|
if (isMasterEngine())
|
||||||
// d->queueShutdownEngine();
|
d->queueShutdownEngine();
|
||||||
// break;
|
break;
|
||||||
// default:
|
default:
|
||||||
// if (isMasterEngine())
|
if (isMasterEngine())
|
||||||
// d->queueShutdownEngine();
|
d->queueShutdownEngine();
|
||||||
// break;
|
break;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DebuggerEngine::notifyEngineSpontaneousShutdown()
|
void DebuggerEngine::notifyEngineSpontaneousShutdown()
|
||||||
|
|||||||
Reference in New Issue
Block a user