forked from qt-creator/qt-creator
		
	debugger: somewhat more graceful shutdown in known situations
This commit is contained in:
		@@ -1409,7 +1409,15 @@ void DebuggerEngine::setActive(bool on)
 | 
			
		||||
void DebuggerEngine::quitDebugger()
 | 
			
		||||
{
 | 
			
		||||
    showMessage("QUIT DEBUGGER REQUESTED");
 | 
			
		||||
    shutdownInferior();
 | 
			
		||||
    d->m_targetState = DebuggerFinished;
 | 
			
		||||
    if (state() == InferiorStopOk) {
 | 
			
		||||
        d->doShutdownInferior();
 | 
			
		||||
    } else if (state() == InferiorRunOk) {
 | 
			
		||||
        d->doInterruptInferior();
 | 
			
		||||
    } else {
 | 
			
		||||
        // FIXME: We should disable the actions connected to that
 | 
			
		||||
        notifyInferiorIll();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void DebuggerEngine::requestInterruptInferior()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user