|
||||||||||
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.debug.core.model.DebugElement
com.pvx.ooadide.launchers.debug.model.PVXDebugElement
public class PVXDebugElement
Constructor Summary | |
---|---|
PVXDebugElement(org.eclipse.debug.core.model.IDebugTarget target)
Constructs a new debug element in the given target. |
Method Summary | |
---|---|
java.lang.String |
getModelIdentifier()
|
java.lang.String |
sendRequest(java.lang.String request)
Sends a request to the PDA interprettor, waits for and returns the reply. |
Methods inherited from class org.eclipse.debug.core.model.DebugElement |
---|
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, getDebugTarget, getLaunch |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PVXDebugElement(org.eclipse.debug.core.model.IDebugTarget target)
target
- debug targetMethod Detail |
---|
public java.lang.String getModelIdentifier()
public java.lang.String sendRequest(java.lang.String request) throws org.eclipse.debug.core.DebugException
Interprettor commands and replies are as follows:
clear N
- clear the breakpoint on line N
;
reply is ok
data
- return the contents of the data stack; reply is the data
from oldest to newest as a single string "value|value|value|...|value|"
drop
- pops the top stack frame off the call stack setting the
instruction pointer to the calling statement in the calling frameeventstop E B
- optionally stop the interpreter when an error event
E
is encountered; B
specifies stop (1
) or
continue (0
). The possible events are unimpinstr
and
nosuchlabel
. Reply is ok
. When an event is encountered,
the interprettor sends the error event (for example unimlpemented instruction foo
)
and corresponding suspend event (for example suspended event unimpinstr
).exit
- end the interpretter; reply is ok
popdata
- pop the top value off the data stack; reply is the valuepushdata V
- push the value V
onto the data stack; reply is
ok
resume
- resume execution of the program; reply is ok
set N
- set a line breakpoint on line N
(lines are indexed
from 0); reply is ok
setdata N V
- set the contents of data stack element N
to
value V
(the data stack is indexed from 0, 0 being the oldest); reply
is ok
setvar N M V
- set the contents of variable M
from the control
stack N
to value V
(the control stack is indexed from 0,
0 being the oldest); reply is ok
stack
- return the contents of the control stack (program counters, function and
variable names); reply is control stack from oldest to newest as a single string
frame#frame#frame...#frame
where each frame is a string
"filename|pc|function name|variable name|variable name|...|variable name"
step
- single step forward; reply is ok
stepreturn
- single step forward until the next return
op code;
stop before executing the return
; reply is ok
suspend
- suspend execution of the program and listen for debug comands;
reply is ok
watch F::V M
- set a watchpoint on variable V
in function
F
to magic value M
; the magic value is a bit flag corresponding
to read access (1), write access (2), or both (3); the magic value 0 clears the watchpoint;
reply is ok
var N M
- return the contents of variable M
in the control
stack frame N
(stack frames are indexed from 0, 0 being the oldest);
reply is variable value
request
- command
org.eclipse.debug.core.DebugException
- if the request fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |