|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.m2m.atl.adt.debug.core.AtlDebugElement
org.eclipse.m2m.atl.adt.debug.core.AtlDebugTarget
public class AtlDebugTarget
A debug target is a debuggable execution context. It's the root of the element hierarchy. The AtlDebugTarget contains only one thread : the main thread. The thread contains the current stackframe
| Field Summary | |
|---|---|
static int |
stateDisconnected
|
static int |
stateRunning
|
static int |
stateSuspended
|
static int |
stateTerminated
constant state possible for the debugger |
| Fields inherited from class org.eclipse.m2m.atl.adt.debug.core.AtlDebugElement |
|---|
fTarget, logger |
| Constructor Summary | |
|---|---|
AtlDebugTarget(org.eclipse.debug.core.ILaunch launch)
|
|
| Method Summary | |
|---|---|
void |
breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
void |
breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
void |
breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
boolean |
canDisconnect()
Return true if the debugger can be disconnected |
boolean |
canResume()
Return true if the debugger can be resumed |
boolean |
canSuspend()
Return true if the debugger can be suspended |
boolean |
canTerminate()
Return true if the debugger can be terminated |
void |
disconnect()
This method disconnect the debugger |
ADWPDebugger |
getDebugger()
|
org.eclipse.debug.core.model.IDebugTarget |
getDebugTarget()
Returns the debugTarget |
java.lang.String |
getHost()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
Returns the launch |
org.eclipse.debug.core.model.IMemoryBlock |
getMemoryBlock(long startAddress,
long length)
Not use in ATL debugger |
java.lang.String |
getMessageFromDebuggee()
|
java.lang.String |
getModelIdentifier()
Returns the unique identifier of the plug-in |
java.lang.String |
getName()
Returns the name of the process |
java.lang.String |
getPort()
|
org.eclipse.debug.core.model.IProcess |
getProcess()
Not use in ATL debugger |
int |
getState()
|
org.eclipse.debug.core.model.IThread[] |
getThreads()
This method returns the array of threads. |
void |
handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
This method allows to receive DebugEvent sent |
boolean |
hasThreads()
This method allows to know if there is a thread in the debugTarget In ATL, there is always one and only one thread : the main thread |
boolean |
isDisassemblyMode()
|
boolean |
isDisconnected()
This method allows to know if the debugger is in a state "Disconnected" |
boolean |
isSuspended()
This method allows to know if the debugger is in a state "Suspended" |
boolean |
isTerminated()
This method allows to know if the debugger is in a state "Terminated" |
void |
resume()
This method resume the debugger |
void |
setDisassemblyMode(boolean disassemblyMode)
|
void |
setPrevLocation(java.lang.String prevLocation)
|
void |
setState(int state)
state corresponding to the state of the debugger (running, disconnected ...) |
void |
start()
|
boolean |
supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
boolean |
supportsStorageRetrieval()
Not use in our context |
void |
suspend()
This method suspends the debugger |
void |
terminate()
This method terminates the action of the debugger |
| Methods inherited from class org.eclipse.m2m.atl.adt.debug.core.AtlDebugElement |
|---|
abort, getAdapter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
public static final int stateTerminated
public static final int stateRunning
public static final int stateSuspended
public static final int stateDisconnected
| Constructor Detail |
|---|
public AtlDebugTarget(org.eclipse.debug.core.ILaunch launch)
| Method Detail |
|---|
public void start()
public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
breakpointAdded in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointAdded(org.eclipse.debug.core.model.IBreakpoint)
public void breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
breakpointChanged in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointChanged(org.eclipse.debug.core.model.IBreakpoint, org.eclipse.core.resources.IMarkerDelta)
public void breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
breakpointRemoved in interface org.eclipse.debug.core.IBreakpointListenerIBreakpointListener.breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint, org.eclipse.core.resources.IMarkerDelta)public boolean canDisconnect()
canDisconnect in interface org.eclipse.debug.core.model.IDisconnectIDisconnect.canDisconnect()public boolean canResume()
canResume in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.canResume()public boolean canSuspend()
canSuspend in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.canSuspend()public boolean canTerminate()
canTerminate in interface org.eclipse.debug.core.model.ITerminateITerminate.canTerminate()
public void disconnect()
throws org.eclipse.debug.core.DebugException
disconnect in interface org.eclipse.debug.core.model.IDisconnectorg.eclipse.debug.core.DebugExceptionIDisconnect.disconnect()public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
getDebugTarget in interface org.eclipse.debug.core.model.IDebugElementgetDebugTarget in class AtlDebugElementIDebugElement.getDebugTarget()public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch in interface org.eclipse.debug.core.model.IDebugElementgetLaunch in class AtlDebugElementIDebugElement.getLaunch()
public org.eclipse.debug.core.model.IMemoryBlock getMemoryBlock(long startAddress,
long length)
throws org.eclipse.debug.core.DebugException
getMemoryBlock in interface org.eclipse.debug.core.model.IMemoryBlockRetrievalorg.eclipse.debug.core.DebugExceptionIMemoryBlockRetrieval.getMemoryBlock(long, long)public java.lang.String getModelIdentifier()
getModelIdentifier in interface org.eclipse.debug.core.model.IDebugElementgetModelIdentifier in class AtlDebugElementIDebugElement.getModelIdentifier()
public java.lang.String getName()
throws org.eclipse.debug.core.DebugException
getName in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.getName()public org.eclipse.debug.core.model.IProcess getProcess()
getProcess in interface org.eclipse.debug.core.model.IDebugTargetIDebugTarget.getProcess()
public org.eclipse.debug.core.model.IThread[] getThreads()
throws org.eclipse.debug.core.DebugException
getThreads in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.getThreads()
public boolean hasThreads()
throws org.eclipse.debug.core.DebugException
hasThreads in interface org.eclipse.debug.core.model.IDebugTargetorg.eclipse.debug.core.DebugExceptionIDebugTarget.hasThreads()public boolean isDisconnected()
isDisconnected in interface org.eclipse.debug.core.model.IDisconnectIDisconnect.isDisconnected()public boolean isSuspended()
isSuspended in interface org.eclipse.debug.core.model.ISuspendResumeISuspendResume.isSuspended()public boolean isTerminated()
isTerminated in interface org.eclipse.debug.core.model.ITerminateITerminate.isTerminated()
public void resume()
throws org.eclipse.debug.core.DebugException
resume in interface org.eclipse.debug.core.model.ISuspendResumeorg.eclipse.debug.core.DebugExceptionISuspendResume.resume()public boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
supportsBreakpoint in interface org.eclipse.debug.core.model.IDebugTargetIDebugTarget.supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint)public boolean supportsStorageRetrieval()
supportsStorageRetrieval in interface org.eclipse.debug.core.model.IMemoryBlockRetrievalIMemoryBlockRetrieval.supportsStorageRetrieval()
public void suspend()
throws org.eclipse.debug.core.DebugException
suspend in interface org.eclipse.debug.core.model.ISuspendResumeorg.eclipse.debug.core.DebugExceptionISuspendResume.suspend()
public void terminate()
throws org.eclipse.debug.core.DebugException
terminate in interface org.eclipse.debug.core.model.ITerminateorg.eclipse.debug.core.DebugExceptionITerminate.terminate()public ADWPDebugger getDebugger()
public int getState()
public void setState(int state)
state - The state to set.public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
IDebugEventSetListener.handleDebugEvents(org.eclipse.debug.core.DebugEvent[])public boolean isDisassemblyMode()
public void setDisassemblyMode(boolean disassemblyMode)
disassemblyMode - The disassemblyMode to set.public void setPrevLocation(java.lang.String prevLocation)
prevLocation - The prevLocation to set.public java.lang.String getHost()
public java.lang.String getPort()
public java.lang.String getMessageFromDebuggee()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||