Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.debug.core.cdi
Interface ICDISession


public interface ICDISession

Represents a debug session.

Since:
Jun 28, 2002

Method Summary
 String getAttribute(String key)
          Returns the value of a debug session attribute.
 ICDISessionConfiguration getConfiguration()
          Returns the configuration description of this debug session.
 ICDIEventManager getEventManager()
          Returns the event manager of this debug session.
 Process getSessionProcess()
          Gaves direct access to the underlying debugger process.
 ICDITarget[] getTargets()
          Returns all the debug targets associatd with this sesion, or an empty collection if no debug targets are associated with this session.
 void setAttribute(String key, String value)
          Sets the value of a debug session attribute.
 void terminate()
          Causes this element to terminate, generating a KIND_TERMINATE event.
 

Method Detail

getTargets

ICDITarget[] getTargets()
Returns all the debug targets associatd with this sesion, or an empty collection if no debug targets are associated with this session.

Returns:
an array of debug targets

setAttribute

void setAttribute(String key,
                  String value)
Sets the value of a debug session attribute.

Parameters:
key - the attribute key
value - the attribute value

getAttribute

String getAttribute(String key)
Returns the value of a debug session attribute.

Parameters:
key - the attribute key
Returns:
value the attribute value, or null if undefined

getEventManager

ICDIEventManager getEventManager()
Returns the event manager of this debug session.

Returns:
the event manager

getConfiguration

ICDISessionConfiguration getConfiguration()
Returns the configuration description of this debug session.

Returns:
the configuration description

terminate

void terminate()
               throws CDIException
Causes this element to terminate, generating a KIND_TERMINATE event.

Throws:
CDIException - on failure. Reasons include:

getSessionProcess

Process getSessionProcess()
                          throws CDIException
Gaves direct access to the underlying debugger process.

Returns:
the debugger process.
Throws:
CDIException

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.