|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.debug.core.CDIDebugModel
public class CDIDebugModel
Provides utility methods for creating debug sessions, targets and breakpoints specific to the CDI debug model.
Constructor Summary | |
---|---|
CDIDebugModel()
|
Method Summary | |
---|---|
static ICAddressBreakpoint |
createAddressBreakpoint(java.lang.String module,
java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
IAddress address,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register)
Creates and returns an address breakpoint for the source defined by the given source handle, at the given address. |
static ICAddressBreakpoint |
createAddressBreakpoint(java.lang.String module,
java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
IAddress address,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register)
Creates and returns an address breakpoint for the source defined by the given source handle, at the given address. |
static ICFunctionBreakpoint |
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)
Creates and returns a breakpoint for the function defined by the given name. |
static ICLineBreakpoint |
createLineBreakpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register)
Creates and returns a line breakpoint for the source defined by the given source handle, at the given line number. |
static ICWatchpoint |
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)
Creates and returns a watchpoint for the source defined by the given source handle, at the given expression. |
static ICWatchpoint |
createWatchpoint(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int charStart,
int charEnd,
int lineNumber,
boolean writeAccess,
boolean readAccess,
java.lang.String expression,
boolean enabled,
int ignoreCount,
java.lang.String condition,
boolean register)
Creates and returns a watchpoint for the source defined by the given source handle, at the given expression. |
static ICFunctionBreakpoint |
functionBreakpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String function)
Returns the function breakpoint that is already registered with the breakpoint manager for a source with the given handle and the given resource with the given function name. |
static java.lang.String |
getPluginIdentifier()
Returns the identifier for the CDI debug model plug-in |
static ICLineBreakpoint |
lineBreakpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
int lineNumber)
Returns the line breakpoint that is already registered with the breakpoint manager for a source with the given handle and the given resource at the given line number. |
static org.eclipse.debug.core.model.IDebugTarget |
newAttachDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget target,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggerProcess,
org.eclipse.core.resources.IFile file)
Deprecated. |
static org.eclipse.debug.core.model.IDebugTarget |
newCoreFileDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget target,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggerProcess,
org.eclipse.core.resources.IFile file)
Deprecated. |
static org.eclipse.debug.core.model.IDebugTarget |
newDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget target,
java.lang.String name,
org.eclipse.debug.core.model.IProcess iprocess,
org.eclipse.debug.core.model.IProcess debuggerProcess,
org.eclipse.core.resources.IFile file,
boolean allowTerminate,
boolean allowDisconnect,
boolean stopInMain)
Deprecated. |
static org.eclipse.debug.core.model.IDebugTarget |
newDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggeeProcess,
IBinaryParser.IBinaryObject file,
boolean allowTerminate,
boolean allowDisconnect,
boolean resumeTarget)
Creates and returns a debug target for the given CDI target, with the specified name, and associates it with the given process for console I/O. |
static org.eclipse.debug.core.model.IDebugTarget |
newDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggeeProcess,
IBinaryParser.IBinaryObject file,
boolean allowTerminate,
boolean allowDisconnect,
boolean stopInMain,
boolean resumeTarget)
Deprecated. |
static org.eclipse.debug.core.model.IDebugTarget |
newDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggeeProcess,
IBinaryParser.IBinaryObject file,
boolean allowTerminate,
boolean allowDisconnect,
java.lang.String stopSymbol,
boolean resumeTarget)
Creates and returns a debug target for the given CDI target, with the specified name, and associates it with the given process for console I/O. |
static ICWatchpoint |
watchpointExists(java.lang.String sourceHandle,
org.eclipse.core.resources.IResource resource,
java.lang.String expression)
Returns the watchpoint that is already registered with the breakpoint manager for a source with the given handle and the given resource at the given expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDIDebugModel()
Method Detail |
---|
public static java.lang.String getPluginIdentifier()
public static org.eclipse.debug.core.model.IDebugTarget newDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.core.resources.IProject project, org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggeeProcess, IBinaryParser.IBinaryObject file, boolean allowTerminate, boolean allowDisconnect, java.lang.String stopSymbol, boolean resumeTarget) throws org.eclipse.debug.core.DebugException
launch
- the launch the new debug target will be contained inproject
- the project to use to persist breakpoints.cdiTarget
- the CDI target to create a debug target forname
- the name to associate with this target, which will be returned from IDebugTarget.getName
.debuggeeProcess
- the process to associate with the debug target, which will be returned from IDebugTarget.getProcess
file
- the executable to debug.allowTerminate
- allow terminate().allowDisconnect
- allow disconnect().stopSymbol
- place temporary breakpoint at stopSymbol
, ignore if null
or empty.resumeTarget
- resume target.
org.eclipse.debug.core.DebugException
public static org.eclipse.debug.core.model.IDebugTarget newDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.core.resources.IProject project, org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggeeProcess, IBinaryParser.IBinaryObject file, boolean allowTerminate, boolean allowDisconnect, boolean stopInMain, boolean resumeTarget) throws org.eclipse.debug.core.DebugException
launch
- the launch the new debug target will be contained inproject
- the project to use to persist breakpoints.cdiTarget
- the CDI target to create a debug target forname
- the name to associate with this target, which will be returned from IDebugTarget.getName
.debuggeeProcess
- the process to associate with the debug target, which will be returned from IDebugTarget.getProcess
file
- the executable to debug.allowTerminate
- allow terminate().allowDisconnect
- allow disconnect().stopInMain
- place temporary breakpoint at main()resumeTarget
- resume target.
org.eclipse.debug.core.DebugException
public static org.eclipse.debug.core.model.IDebugTarget newDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.core.resources.IProject project, org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggeeProcess, IBinaryParser.IBinaryObject file, boolean allowTerminate, boolean allowDisconnect, boolean resumeTarget) throws org.eclipse.debug.core.DebugException
launch
- the launch the new debug target will be contained inproject
- the project to use to persist breakpoints.cdiTarget
- the CDI target to create a debug target forname
- the name to associate with this target, which will be returned from IDebugTarget.getName
.debuggeeProcess
- the process to associate with the debug target, which will be returned from IDebugTarget.getProcess
file
- the executable to debug.allowTerminate
- allow terminate().allowDisconnect
- allow disconnect().resumeTarget
- resume target.
org.eclipse.debug.core.DebugException
public static ICLineBreakpoint createLineBreakpoint(java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, int lineNumber, boolean enabled, int ignoreCount, java.lang.String condition, boolean register) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the handle to the breakpoint sourceresource
- the resource on which to create the associated breakpoint markerlineNumber
- the line number on which the breakpoint is set - line numbers are 1 based, associated with the source file in which the breakpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICAddressBreakpoint createAddressBreakpoint(java.lang.String module, java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, IAddress address, boolean enabled, int ignoreCount, java.lang.String condition, boolean register) throws org.eclipse.core.runtime.CoreException
module
- the module name the breakpoint is set insourceHandle
- the handle to the breakpoint sourceresource
- the resource on which to create the associated breakpoint markeraddress
- the address on which the breakpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICAddressBreakpoint createAddressBreakpoint(java.lang.String module, java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, int lineNumber, IAddress address, boolean enabled, int ignoreCount, java.lang.String condition, boolean register) throws org.eclipse.core.runtime.CoreException
module
- the module name the breakpoint is set insourceHandle
- the handle to the breakpoint sourceresource
- the resource on which to create the associated breakpoint markerlineNumber
- the line number in the source fileaddress
- the address on which the breakpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICWatchpoint 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) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the handle to the watchpoint sourceresource
- the resource on which to create the associated watchpoint markerwriteAccess
- whether this is write watchpointreadAccess
- whether this is read watchpointexpression
- the expression on which the watchpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICWatchpoint createWatchpoint(java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, int charStart, int charEnd, int lineNumber, boolean writeAccess, boolean readAccess, java.lang.String expression, boolean enabled, int ignoreCount, java.lang.String condition, boolean register) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the handle to the watchpoint sourceresource
- the resource on which to create the associated watchpoint markercharStart
- the first character index associated with the watchpoint, or
-1 if unspecified, in the source file in which the watchpoint
is setcharEnd
- the last character index associated with the watchpoint, or -1
if unspecified, in the source file in which the watchpoint is
setlineNumber
- the lineNumber on which the watchpoint is set, or -1 if
unspecified - line numbers are 1 based, associated with the
source file in which the watchpoint is setwriteAccess
- whether this is write watchpointreadAccess
- whether this is read watchpointexpression
- the expression on which the watchpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICFunctionBreakpoint 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) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the handle to the breakpoint sourceresource
- the resource on which to create the associated breakpoint markerfunction
- the name of the function this breakpoint suspends execution incharStart
- the first character index associated with the breakpoint, or
-1 if unspecified, in the source file in which the breakpoint
is setcharEnd
- the last character index associated with the breakpoint, or -1
if unspecified, in the source file in which the breakpoint is
setlineNumber
- the lineNumber on which the breakpoint is set, or -1 if
unspecified - line numbers are 1 based, associated with the
source file in which the breakpoint is setenabled
- whether to enable or disable this breakpointignoreCount
- the number of times this breakpoint will be ignoredcondition
- the breakpoint conditionregister
- whether to add this breakpoint to the breakpoint manager
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static ICLineBreakpoint lineBreakpointExists(java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, int lineNumber) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the source handleresource
- the breakpoint resourcelineNumber
- the line number
null
if no such breakpoint
is registered
org.eclipse.core.runtime.CoreException
- if unable to retrieve the associated marker attributes (line number).public static ICWatchpoint watchpointExists(java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, java.lang.String expression) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the source handleresource
- the breakpoint resourceexpression
- the expression
null
if no such watchpoint is
registered
org.eclipse.core.runtime.CoreException
- if unable to retrieve the associated marker attributes (line number).public static ICFunctionBreakpoint functionBreakpointExists(java.lang.String sourceHandle, org.eclipse.core.resources.IResource resource, java.lang.String function) throws org.eclipse.core.runtime.CoreException
sourceHandle
- the source handleresource
- the breakpoint resourcefunction
- the fully qualified function name
null
if no such breakpoint is
registered
org.eclipse.core.runtime.CoreException
- if unable to retrieve the associated marker attributes (line number).public static org.eclipse.debug.core.model.IDebugTarget newDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.cdt.debug.core.cdi.model.ICDITarget target, java.lang.String name, org.eclipse.debug.core.model.IProcess iprocess, org.eclipse.debug.core.model.IProcess debuggerProcess, org.eclipse.core.resources.IFile file, boolean allowTerminate, boolean allowDisconnect, boolean stopInMain) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static org.eclipse.debug.core.model.IDebugTarget newAttachDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.cdt.debug.core.cdi.model.ICDITarget target, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggerProcess, org.eclipse.core.resources.IFile file) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static org.eclipse.debug.core.model.IDebugTarget newCoreFileDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.cdt.debug.core.cdi.model.ICDITarget target, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggerProcess, org.eclipse.core.resources.IFile file) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |