PTP
Release 7.0

org.eclipse.ptp.debug.core
Interface IPSession


public interface IPSession

Interface for managing debugger session


Method Summary
 void connectToDebugger(IProgressMonitor monitor, java.lang.String app, java.lang.String path, java.lang.String cwd, java.lang.String[] args)
          Connection to the debugger
 void createDebugTarget(TaskSet tasks, boolean refresh, boolean register)
          Create the debug target
 void deleteDebugTarget(TaskSet tasks, boolean refresh, boolean register)
          Remove the debug target
 void deleteDebugTargets(boolean register)
          Remove all debug targets
 void dispose()
          Called to dispose resources used by the session
 IPDebugTarget findDebugTarget(TaskSet tasks)
          Find the debug target associated with the tasks
 void fireDebugEvent(int change, int breakpoint, IPDebugInfo info)
          Fire a debug event.
 void forceStoppedDebugger(boolean isError)
          Force processes to terminated state.
 IPBreakpointManager getBreakpointManager()
          Get the breakpoint manager
 IPDebugInfo getDebugInfo(TaskSet tasks)
          Get the debug info
 IPLaunch getLaunch()
          Get the launch instance used to launch this session
 IPLocationSetManager getLocationSetManager()
          Get the location set manager
 IPMemoryManager getMemoryManager()
          Get the memory manager
 IPDISession getPDISession()
          Get the PDI session
 IProject getProject()
          Get the project
 IPRegisterManager getRegisterManager()
          Get the register manager
 IPSetManager getSetManager()
          Get the set manager
 IPSignalManager getSignalManager()
          Get the signal manager
 TaskSet getTasks()
          Get the tasks associated with this debug session
 TaskSet getTasks(int id)
          Get the task with supplied id
 boolean isReady()
          Check if the debugger is ready
 void reloadDebugTargets(TaskSet tasks, boolean refresh, boolean register)
          Reload debug targets
 

Method Detail

connectToDebugger

void connectToDebugger(IProgressMonitor monitor,
                       java.lang.String app,
                       java.lang.String path,
                       java.lang.String cwd,
                       java.lang.String[] args)
                       throws CoreException
Connection to the debugger

Parameters:
monitor -
app -
path -
cwd -
args -
Throws:
CoreException

createDebugTarget

void createDebugTarget(TaskSet tasks,
                       boolean refresh,
                       boolean register)
Create the debug target

Parameters:
tasks -
refresh -
register -
Since:
4.0

deleteDebugTarget

void deleteDebugTarget(TaskSet tasks,
                       boolean refresh,
                       boolean register)
Remove the debug target

Parameters:
tasks -
refresh -
register -
Since:
4.0

deleteDebugTargets

void deleteDebugTargets(boolean register)
Remove all debug targets

Parameters:
register -

dispose

void dispose()
Called to dispose resources used by the session


findDebugTarget

IPDebugTarget findDebugTarget(TaskSet tasks)
Find the debug target associated with the tasks

Parameters:
tasks -
Returns:
Since:
4.0

fireDebugEvent

void fireDebugEvent(int change,
                    int breakpoint,
                    IPDebugInfo info)
Fire a debug event.

Parameters:
change -
breakpoint -
info -

forceStoppedDebugger

void forceStoppedDebugger(boolean isError)
Force processes to terminated state. The flag isError indicates if this was as the result of an error.

Parameters:
isError -

getBreakpointManager

IPBreakpointManager getBreakpointManager()
Get the breakpoint manager

Returns:

getDebugInfo

IPDebugInfo getDebugInfo(TaskSet tasks)
Get the debug info

Parameters:
tasks -
Returns:
Since:
4.0

getLaunch

IPLaunch getLaunch()
Get the launch instance used to launch this session

Returns:

getLocationSetManager

IPLocationSetManager getLocationSetManager()
Get the location set manager

Returns:
the location set manager
Since:
5.0

getMemoryManager

IPMemoryManager getMemoryManager()
Get the memory manager

Returns:

getPDISession

IPDISession getPDISession()
Get the PDI session

Returns:

getProject

IProject getProject()
Get the project

Returns:

getRegisterManager

IPRegisterManager getRegisterManager()
Get the register manager

Returns:

getSetManager

IPSetManager getSetManager()
Get the set manager

Returns:

getSignalManager

IPSignalManager getSignalManager()
Get the signal manager

Returns:
Since:
5.0

getTasks

TaskSet getTasks()
Get the tasks associated with this debug session

Returns:
Since:
4.0

getTasks

TaskSet getTasks(int id)
Get the task with supplied id

Parameters:
id -
Returns:
Since:
4.0

isReady

boolean isReady()
Check if the debugger is ready

Returns:

reloadDebugTargets

void reloadDebugTargets(TaskSet tasks,
                        boolean refresh,
                        boolean register)
Reload debug targets

Parameters:
tasks -
refresh -
register -
Since:
4.0

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.