|
||||||||||
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.debug.core.AtlDebugElement
org.eclipse.m2m.atl.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.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 |
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 |
setStopInMain(boolean stopInMain)
|
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.debug.core.AtlDebugElement |
---|
abort, getAdapter, getModelIdentifier |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getModelIdentifier |
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 debugMethod Detail |
---|
public void setStopInMain(boolean stopInMain)
public void start()
public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
breakpointAdded
in interface org.eclipse.debug.core.IBreakpointListener
IBreakpointListener.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.IBreakpointListener
IBreakpointListener.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.IBreakpointListener
IBreakpointListener.breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint,
org.eclipse.core.resources.IMarkerDelta)
public boolean canDisconnect()
canDisconnect
in interface org.eclipse.debug.core.model.IDisconnect
IDisconnect.canDisconnect()
public boolean canResume()
canResume
in interface org.eclipse.debug.core.model.ISuspendResume
ISuspendResume.canResume()
public boolean canSuspend()
canSuspend
in interface org.eclipse.debug.core.model.ISuspendResume
ISuspendResume.canSuspend()
public boolean canTerminate()
canTerminate
in interface org.eclipse.debug.core.model.ITerminate
ITerminate.canTerminate()
public void disconnect() throws org.eclipse.debug.core.DebugException
disconnect
in interface org.eclipse.debug.core.model.IDisconnect
org.eclipse.debug.core.DebugException
IDisconnect.disconnect()
public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
getDebugTarget
in interface org.eclipse.debug.core.model.IDebugElement
getDebugTarget
in class AtlDebugElement
AtlDebugElement.getDebugTarget()
public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch
in interface org.eclipse.debug.core.model.IDebugElement
getLaunch
in class AtlDebugElement
AtlDebugElement.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.IMemoryBlockRetrieval
org.eclipse.debug.core.DebugException
IMemoryBlockRetrieval.getMemoryBlock(long, long)
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
IDebugTarget.getName()
public org.eclipse.debug.core.model.IProcess getProcess()
getProcess
in interface org.eclipse.debug.core.model.IDebugTarget
IDebugTarget.getProcess()
public org.eclipse.debug.core.model.IThread[] getThreads() throws org.eclipse.debug.core.DebugException
getThreads
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
IDebugTarget.getThreads()
public boolean hasThreads() throws org.eclipse.debug.core.DebugException
hasThreads
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
IDebugTarget.hasThreads()
public boolean isDisconnected()
isDisconnected
in interface org.eclipse.debug.core.model.IDisconnect
IDisconnect.isDisconnected()
public boolean isSuspended()
isSuspended
in interface org.eclipse.debug.core.model.ISuspendResume
ISuspendResume.isSuspended()
public boolean isTerminated()
isTerminated
in interface org.eclipse.debug.core.model.ITerminate
ITerminate.isTerminated()
public void resume() throws org.eclipse.debug.core.DebugException
resume
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
ISuspendResume.resume()
public boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
supportsBreakpoint
in interface org.eclipse.debug.core.model.IDebugTarget
IDebugTarget.supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint)
public boolean supportsStorageRetrieval()
supportsStorageRetrieval
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
IMemoryBlockRetrieval.supportsStorageRetrieval()
public void suspend() throws org.eclipse.debug.core.DebugException
suspend
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
ISuspendResume.suspend()
public void terminate() throws org.eclipse.debug.core.DebugException
terminate
in interface org.eclipse.debug.core.model.ITerminate
org.eclipse.debug.core.DebugException
ITerminate.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 |