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:
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.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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue