|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.debug.core.PDebugModel
public class PDebugModel
| Constructor Summary | |
|---|---|
PDebugModel()
|
|
| Method Summary | |
|---|---|
void |
addNewDebugTargets(IPLaunch launch,
TaskSet tasks,
IPDITarget[] pdiTargets,
boolean refresh,
boolean resumeTarget)
Add a new debug target to the lauch. |
void |
addTasks(IPSession session,
java.lang.String setId,
TaskSet tasks)
Add new tasks to a task set |
static IPAddressBreakpoint |
createAddressBreakpoint(java.lang.String module,
java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
java.math.BigInteger address,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
Create an address breakpoint. |
IPSession |
createDebugSession(IPDebugger debugger,
IPLaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Helper method to create a new debug session. |
static IPFunctionBreakpoint |
createFunctionBreakpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String function,
int charStart,
int charEnd,
int lineNumber,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
Create a function breakpoint. |
static IPLineBreakpoint |
createLineBreakpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
|
void |
createSet(IPSession session,
java.lang.String setId,
TaskSet tasks)
Create a new set containing the given tasks. |
static IPWatchpoint |
createWatchpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
boolean writeAccess,
boolean readAccess,
java.lang.String expression,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
Create a watchpoint on an expression. |
void |
deleteSet(IPSession session,
java.lang.String setId)
Remove a set from the session. |
static IPFunctionBreakpoint[] |
functionBreakpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String function)
Find the breakpoints for a particular function. |
static org.eclipse.debug.core.model.IBreakpoint[] |
getBreakpoints()
Get all the breakpoints set by the debugger. |
static java.lang.String |
getPluginIdentifier()
|
IPSession |
getSession(java.lang.String jobId)
Get the session associated with a job |
TaskSet |
getTasks(IPSession session,
java.lang.String setId)
Find the tasks associated with a set in a debug sesison. |
static IPLineBreakpoint |
lineBreakpointExists(IPLineBreakpoint[] breakpoints,
org.eclipse.ptp.core.elements.IPJob job)
Find the first global breakpoint or breakpoint on the supplied job. |
static IPLineBreakpoint[] |
lineBreakpointsExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber)
Find the line breakpoints at a particular line. |
void |
removeDebugTarget(IPLaunch launch,
TaskSet tasks,
boolean refresh)
Remove a debug target from a launch |
void |
removeTasks(IPSession session,
java.lang.String setId,
TaskSet tasks)
Remove tasks from the set of tasks defined by setId. |
void |
shutdown()
Shutdown all debug sessions |
void |
shutdownSession(java.lang.String jobId)
Shutdown the debug session for the given job. |
static void |
updateBreakpoints(java.lang.String setId,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update breakpoint when a set ID changes. |
static IPWatchpoint[] |
watchpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String expression)
Check if a watchpoint exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDebugModel()
| Method Detail |
|---|
public static IPAddressBreakpoint createAddressBreakpoint(java.lang.String module,
java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
java.math.BigInteger address,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
throws org.eclipse.core.runtime.CoreException
module - sourceHandle - resource - lineNumber - address - enabled - ignoreCount - condition - register - setId - jobId - jobName -
org.eclipse.core.runtime.CoreException
public static IPFunctionBreakpoint createFunctionBreakpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String function,
int charStart,
int charEnd,
int lineNumber,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - function - charStart - charEnd - lineNumber - enabled - ignoreCount - condition - register - setId - jobId - jobName -
org.eclipse.core.runtime.CoreException
public static IPLineBreakpoint createLineBreakpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - lineNumber - enabled - ignoreCount - condition - register - setId - jobId -
org.eclipse.core.runtime.CoreException
public static IPWatchpoint createWatchpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
boolean writeAccess,
boolean readAccess,
java.lang.String expression,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register,
java.lang.String setId,
java.lang.String jobId,
java.lang.String jobName)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - writeAccess - readAccess - expression - enabled - ignoreCount - condition - register - setId - jobId - jobName -
org.eclipse.core.runtime.CoreException
public static IPFunctionBreakpoint[] functionBreakpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String function)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - function -
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.debug.core.model.IBreakpoint[] getBreakpoints()
public static java.lang.String getPluginIdentifier()
public static IPLineBreakpoint lineBreakpointExists(IPLineBreakpoint[] breakpoints,
org.eclipse.ptp.core.elements.IPJob job)
throws org.eclipse.core.runtime.CoreException
breakpoints - job -
org.eclipse.core.runtime.CoreException
public static IPLineBreakpoint[] lineBreakpointsExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - lineNumber -
org.eclipse.core.runtime.CoreException
public static void updateBreakpoints(java.lang.String setId,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
setId - monitor -
org.eclipse.core.runtime.CoreException
public static IPWatchpoint[] watchpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String expression)
throws org.eclipse.core.runtime.CoreException
sourceHandle - resource - expression -
org.eclipse.core.runtime.CoreException
public void addNewDebugTargets(IPLaunch launch,
TaskSet tasks,
IPDITarget[] pdiTargets,
boolean refresh,
boolean resumeTarget)
launch - tasks - pdiTargets - refresh - resumeTarget -
public void addTasks(IPSession session,
java.lang.String setId,
TaskSet tasks)
session - current debug sessionsetId - ID of the set to add the tasks totasks - tasks to add to the set
public IPSession createDebugSession(IPDebugger debugger,
IPLaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
timeout - timeout value for debug commandslaunch - debugger launch configurationmonitor - progress monitor
org.eclipse.core.runtime.CoreException
public void createSet(IPSession session,
java.lang.String setId,
TaskSet tasks)
session - setId - tasks -
public void deleteSet(IPSession session,
java.lang.String setId)
session - current sessionsetId - public IPSession getSession(java.lang.String jobId)
job -
public TaskSet getTasks(IPSession session,
java.lang.String setId)
session - setId -
public void removeDebugTarget(IPLaunch launch,
TaskSet tasks,
boolean refresh)
launch - tasks - refresh -
public void removeTasks(IPSession session,
java.lang.String setId,
TaskSet tasks)
session - debug sessionsetId - id of set containing tasks to be removedtasks - tasks to be removed from the setpublic void shutdown()
public void shutdownSession(java.lang.String jobId)
jobId - job ID for the debug session
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||