mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Session is terminated on exit.
This commit is contained in:
parent
bd73e9ca42
commit
40af4ef33b
1 changed files with 10 additions and 3 deletions
|
@ -50,7 +50,6 @@ import org.eclipse.debug.core.model.IBreakpoint;
|
||||||
import org.eclipse.debug.core.model.IDebugTarget;
|
import org.eclipse.debug.core.model.IDebugTarget;
|
||||||
import org.eclipse.debug.core.model.IMemoryBlock;
|
import org.eclipse.debug.core.model.IMemoryBlock;
|
||||||
import org.eclipse.debug.core.model.IProcess;
|
import org.eclipse.debug.core.model.IProcess;
|
||||||
import org.eclipse.debug.core.model.ISourceLocator;
|
|
||||||
import org.eclipse.debug.core.model.IThread;
|
import org.eclipse.debug.core.model.IThread;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1048,12 +1047,20 @@ public class CDebugTarget extends CDebugElement
|
||||||
setCurrentStateId( IState.EXITED );
|
setCurrentStateId( IState.EXITED );
|
||||||
setCurrentStateInfo( event.getExitInfo() );
|
setCurrentStateInfo( event.getExitInfo() );
|
||||||
fireChangeEvent( DebugEvent.CONTENT );
|
fireChangeEvent( DebugEvent.CONTENT );
|
||||||
|
try
|
||||||
|
{
|
||||||
|
terminate();
|
||||||
|
}
|
||||||
|
catch( DebugException e )
|
||||||
|
{
|
||||||
|
CDebugCorePlugin.log( e.getStatus() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleTerminatedEvent( ICDIDestroyedEvent event )
|
private void handleTerminatedEvent( ICDIDestroyedEvent event )
|
||||||
{
|
{
|
||||||
setCurrentStateId( IState.TERMINATED );
|
// setCurrentStateId( IState.TERMINATED );
|
||||||
setCurrentStateInfo( null );
|
// setCurrentStateInfo( null );
|
||||||
IProcess process = getProcess();
|
IProcess process = getProcess();
|
||||||
if ( process != null )
|
if ( process != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue