1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Session is terminated on exit.

This commit is contained in:
Mikhail Khodjaiants 2002-08-28 17:27:19 +00:00
parent bd73e9ca42
commit 40af4ef33b

View file

@ -50,7 +50,6 @@ import org.eclipse.debug.core.model.IBreakpoint;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.core.model.IMemoryBlock;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.debug.core.model.ISourceLocator;
import org.eclipse.debug.core.model.IThread;
/**
@ -1048,12 +1047,20 @@ public class CDebugTarget extends CDebugElement
setCurrentStateId( IState.EXITED );
setCurrentStateInfo( event.getExitInfo() );
fireChangeEvent( DebugEvent.CONTENT );
try
{
terminate();
}
catch( DebugException e )
{
CDebugCorePlugin.log( e.getStatus() );
}
}
private void handleTerminatedEvent( ICDIDestroyedEvent event )
{
setCurrentStateId( IState.TERMINATED );
setCurrentStateInfo( null );
// setCurrentStateId( IState.TERMINATED );
// setCurrentStateInfo( null );
IProcess process = getProcess();
if ( process != null )
{