|
||||||||||
| 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 |
STATE_DISCONNECTED
Disconnected. |
static int |
STATE_RUNNING
Running. |
static int |
STATE_SUSPENDED
Suspended. |
static int |
STATE_TERMINATED
Terminated. |
| Fields inherited from class org.eclipse.m2m.atl.adt.debug.core.AtlDebugElement |
|---|
fTarget |
| Constructor Summary | |
|---|---|
AtlDebugTarget(org.eclipse.debug.core.ILaunch launch)
Creates an new Debug target for the given 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()
|
boolean |
canResume()
|
boolean |
canSuspend()
|
boolean |
canTerminate()
|
void |
disconnect()
|
ADWPDebugger |
getDebugger()
Returns the debugger. |
org.eclipse.debug.core.model.IDebugTarget |
getDebugTarget()
|
java.lang.String |
getHost()
Returns the host. |
org.eclipse.debug.core.ILaunch |
getLaunch()
|
org.eclipse.debug.core.model.IMemoryBlock |
getMemoryBlock(long startAddress,
long length)
Not use in ATL debugger. |
java.lang.String |
getMessageFromDebuggee()
Returns the messageFromDebuggee. |
java.lang.String |
getModelIdentifier()
|
java.lang.String |
getName()
|
java.lang.String |
getPort()
Returns the port. |
org.eclipse.debug.core.model.IProcess |
getProcess()
Not use in ATL debugger. |
int |
getState()
Returns the state. |
org.eclipse.debug.core.model.IThread[] |
getThreads()
In our context, this method returns an array with only the main thread. |
void |
handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
This method allows to receive DebugEvent sent. |
boolean |
hasThreads()
In ATL, there is always one and only one thread : the main thread. |
boolean |
isDisassemblyMode()
|
boolean |
isDisconnected()
|
boolean |
isSuspended()
|
boolean |
isTerminated()
|
void |
resume()
|
void |
setDisassemblyMode(boolean disassemblyMode)
Sets the disassembly mode. |
void |
setPrevLocation(java.lang.String prevLocation)
Sets the previous location. |
void |
setState(int state)
The state corresponding to the state of the debugger (running, disconnected ...) |
void |
start()
Starts debug. |
boolean |
supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
boolean |
supportsStorageRetrieval()
Not use in our context. |
void |
suspend()
|
void |
terminate()
|
| 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 STATE_TERMINATED
public static final int STATE_RUNNING
public static final int STATE_SUSPENDED
public static final int STATE_DISCONNECTED
| Constructor Detail |
|---|
public AtlDebugTarget(org.eclipse.debug.core.ILaunch launch)
launch - the launch to debug| 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 AtlDebugElementAtlDebugElement.getDebugTarget()public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch in interface org.eclipse.debug.core.model.IDebugElementgetLaunch in class AtlDebugElementAtlDebugElement.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 AtlDebugElementAtlDebugElement.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)
events - the handled eventIDebugEventSetListener.handleDebugEvents(org.eclipse.debug.core.DebugEvent[])public boolean isDisassemblyMode()
public void setDisassemblyMode(boolean disassemblyMode)
disassemblyMode - the disassemblyMode to setpublic void setPrevLocation(java.lang.String prevLocation)
prevLocation - the prevLocation to setpublic 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 | |||||||||