PTP
Release 5.0

org.eclipse.ptp.debug.core.pdi.manager
Interface IPDIBreakpointManager

All Superinterfaces:
IPDIManager, IPDISessionObject, IPDISet

public interface IPDIBreakpointManager
extends IPDIManager

Represent breakpoint manager to manage breakpoints


Method Summary
 void addSetBreakpoint(TaskSet tasks, IPDIBreakpoint breakpoint)
          Called when new tasks are added to a set.
 IPDIAddressLocation createAddressLocation(BigInteger address)
          Create address location
 IPDICondition createCondition(int ignoreCount, String expression, String[] tids)
          Creates condition
 IPDIFunctionLocation createFunctionLocation(String file, String function)
          Create function location
 IPDILineLocation createLineLocation(String file, int line)
          Creates line location
 void deleteAllBreakpoints()
          Deletes all breakpoint of all processes
 void deleteAllBreakpoints(TaskSet tasks)
          Deletes all breakpoints of specify process
 void deleteBreakpoint(TaskSet tasks, IPDIBreakpoint breakpoint)
          Deletes breakpoint
 void deleteSetBreakpoint(TaskSet tasks, IPDIBreakpoint breakpoint)
          Deletes a breakpoint that is different from original task
 void disableBreakpoint(TaskSet tasks, IPDIBreakpoint breakpoint)
          Disable breakpoint
 void enableBreakpoint(TaskSet tasks, IPDIBreakpoint breakpoint)
          Enables breakpoint
 IPDIBreakpoint getBreakpoint(int id)
           
 IPDIAddressBreakpoint setAddressBreakpoint(TaskSet tasks, int type, IPDIAddressLocation location, IPDICondition condition, boolean deferred, boolean enabled)
          Sets address breakpoint
 void setCondition(TaskSet tasks, IPDIBreakpoint breakpoint, IPDICondition newCondition)
          Sets condition
 IPDIExceptionpoint setExceptionpoint(TaskSet tasks, String clazz, boolean stopOnThrow, boolean stopOnCatch, boolean enabled)
          Sets exceptionpoint
 IPDIFunctionBreakpoint setFunctionBreakpoint(TaskSet tasks, int type, IPDIFunctionLocation location, IPDICondition condition, boolean deferred, boolean enabled)
          Sets function breakpoint
 IPDILineBreakpoint setLineBreakpoint(TaskSet tasks, int type, IPDILineLocation location, IPDICondition condition, boolean deferred, boolean enabled)
          Sets line breakpoint
 IPDIWatchpoint setWatchpoint(TaskSet tasks, int type, int watchType, String expression, IPDICondition condition, boolean enabled)
          Sets watchpoint
 void updatePendingBreakpoints()
          Update any pending breakpoints.
 
Methods inherited from interface org.eclipse.ptp.debug.core.pdi.manager.IPDIManager
isAutoUpdate, setAutoUpdate, shutdown, update
 
Methods inherited from interface org.eclipse.ptp.debug.core.pdi.IPDISessionObject
getSession
 
Methods inherited from interface org.eclipse.ptp.debug.core.pdi.IPDISet
getTasks
 

Method Detail

addSetBreakpoint

void addSetBreakpoint(TaskSet tasks,
                      IPDIBreakpoint breakpoint)
                      throws PDIException
Called when new tasks are added to a set. Updates the breakpoint so that it is set on the new tasks.

Parameters:
tasks - tasks that have been added
breakpoint - breakpoint to update
Throws:
PDIException - on failure
Since:
4.0

createAddressLocation

IPDIAddressLocation createAddressLocation(BigInteger address)
Create address location

Parameters:
address -
Returns:

createCondition

IPDICondition createCondition(int ignoreCount,
                              String expression,
                              String[] tids)
Creates condition

Parameters:
ignoreCount -
expression -
tids -
Returns:

createFunctionLocation

IPDIFunctionLocation createFunctionLocation(String file,
                                            String function)
Create function location

Parameters:
file -
function -
Returns:

createLineLocation

IPDILineLocation createLineLocation(String file,
                                    int line)
Creates line location

Parameters:
file -
line -
Returns:

deleteAllBreakpoints

void deleteAllBreakpoints()
                          throws PDIException
Deletes all breakpoint of all processes

Throws:
PDIException - on failure

deleteAllBreakpoints

void deleteAllBreakpoints(TaskSet tasks)
                          throws PDIException
Deletes all breakpoints of specify process

Parameters:
tasks - target process
Throws:
PDIException - on failure
Since:
4.0

deleteBreakpoint

void deleteBreakpoint(TaskSet tasks,
                      IPDIBreakpoint breakpoint)
                      throws PDIException
Deletes breakpoint

Parameters:
tasks -
breakpoint -
Throws:
PDIException - on failure
Since:
4.0

deleteSetBreakpoint

void deleteSetBreakpoint(TaskSet tasks,
                         IPDIBreakpoint breakpoint)
                         throws PDIException
Deletes a breakpoint that is different from original task

Parameters:
tasks - latest tasks
breakpoint - breakpoint to be deleted
Throws:
PDIException - on failure
Since:
4.0

disableBreakpoint

void disableBreakpoint(TaskSet tasks,
                       IPDIBreakpoint breakpoint)
                       throws PDIException
Disable breakpoint

Parameters:
tasks -
breakpoint -
Throws:
PDIException
Since:
4.0

enableBreakpoint

void enableBreakpoint(TaskSet tasks,
                      IPDIBreakpoint breakpoint)
                      throws PDIException
Enables breakpoint

Parameters:
tasks -
breakpoint -
Throws:
PDIException
Since:
4.0

getBreakpoint

IPDIBreakpoint getBreakpoint(int id)
Parameters:
id -
Returns:

setAddressBreakpoint

IPDIAddressBreakpoint setAddressBreakpoint(TaskSet tasks,
                                           int type,
                                           IPDIAddressLocation location,
                                           IPDICondition condition,
                                           boolean deferred,
                                           boolean enabled)
                                           throws PDIException
Sets address breakpoint

Parameters:
tasks -
type -
location -
condition -
deferred -
enabled -
Returns:
Throws:
PDIException
Since:
4.0

setCondition

void setCondition(TaskSet tasks,
                  IPDIBreakpoint breakpoint,
                  IPDICondition newCondition)
                  throws PDIException
Sets condition

Parameters:
tasks -
breakpoint -
newCondition -
Throws:
PDIException
Since:
4.0

setExceptionpoint

IPDIExceptionpoint setExceptionpoint(TaskSet tasks,
                                     String clazz,
                                     boolean stopOnThrow,
                                     boolean stopOnCatch,
                                     boolean enabled)
                                     throws PDIException
Sets exceptionpoint

Parameters:
tasks -
clazz -
stopOnThrow -
stopOnCatch -
enabled -
Returns:
Throws:
PDIException
Since:
4.0

setFunctionBreakpoint

IPDIFunctionBreakpoint setFunctionBreakpoint(TaskSet tasks,
                                             int type,
                                             IPDIFunctionLocation location,
                                             IPDICondition condition,
                                             boolean deferred,
                                             boolean enabled)
                                             throws PDIException
Sets function breakpoint

Parameters:
tasks -
type -
location -
condition -
deferred -
enabled -
Returns:
Throws:
PDIException
Since:
4.0

setLineBreakpoint

IPDILineBreakpoint setLineBreakpoint(TaskSet tasks,
                                     int type,
                                     IPDILineLocation location,
                                     IPDICondition condition,
                                     boolean deferred,
                                     boolean enabled)
                                     throws PDIException
Sets line breakpoint

Parameters:
tasks -
type -
location -
condition -
deferred -
enabled -
Returns:
Throws:
PDIException
Since:
4.0

setWatchpoint

IPDIWatchpoint setWatchpoint(TaskSet tasks,
                             int type,
                             int watchType,
                             String expression,
                             IPDICondition condition,
                             boolean enabled)
                             throws PDIException
Sets watchpoint

Parameters:
tasks -
type -
watchType -
expression -
condition -
enabled -
Returns:
Throws:
PDIException
Since:
4.0

updatePendingBreakpoints

void updatePendingBreakpoints()
                              throws PDIException
Update any pending breakpoints. This should be called when the debugger enters suspended state to update any breakpoints that could not be set or deleted because tasks were running.

Throws:
PDIException

PTP
Release 5.0

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