diff options
author | Kyle Galloway <kgallowa@redhat.com> | 2007-02-02 14:45:53 +0000 |
---|---|---|
committer | Kyle Galloway <kgallowa@redhat.com> | 2007-02-02 14:45:53 +0000 |
commit | 35b74d38e65bb6c1c0cdb024b7ebf133c80dc024 (patch) | |
tree | 74b87759e188651eb4b897163872ee8aaadb709d /gnu | |
parent | e41a2a0ffc606e607823cb61b3ace058f117344b (diff) | |
download | classpath-35b74d38e65bb6c1c0cdb024b7ebf133c80dc024.tar.gz |
2007-02-02 Kyle Galloway <kgallowa@redhat.com>
* gnu/classpath/jdwp/processor/StackFrameCommandSet.java
(executeGetValues): Changed getFrame to use a jlong to pass
frameID.
(executeSetValues): Ditto.
(executeThisObject): Ditto.
* vm/reference/gnu/classpath/jdwp/VMFrame.java: Added thread field and a constructor used to create VMFrames.
(getThread): New method.
* vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java
(getFrame): Changed to take a long instead of a ByteBuffer to pass
the frameID.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/classpath/jdwp/processor/StackFrameCommandSet.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/classpath/jdwp/processor/StackFrameCommandSet.java b/gnu/classpath/jdwp/processor/StackFrameCommandSet.java index 7890a8e4b..32fd560de 100644 --- a/gnu/classpath/jdwp/processor/StackFrameCommandSet.java +++ b/gnu/classpath/jdwp/processor/StackFrameCommandSet.java @@ -107,7 +107,8 @@ public class StackFrameCommandSet // has a reference to them. Furthermore they are not ReferenceTypeIds since // these are held permanently and we want these to be held only as long as // the Thread is suspended. - VMFrame frame = VMVirtualMachine.getFrame(thread, bb); + long frameID = bb.getLong(); + VMFrame frame = VMVirtualMachine.getFrame(thread, frameID); int slots = bb.getInt(); os.writeInt(slots); // Looks pointless but this is the protocol for (int i = 0; i < slots; i++) @@ -125,7 +126,8 @@ public class StackFrameCommandSet ObjectId tId = idMan.readObjectId(bb); Thread thread = (Thread) tId.getObject(); - VMFrame frame = VMVirtualMachine.getFrame(thread, bb); + long frameID = bb.getLong(); + VMFrame frame = VMVirtualMachine.getFrame(thread, frameID); int slots = bb.getInt(); for (int i = 0; i < slots; i++) @@ -142,7 +144,8 @@ public class StackFrameCommandSet ObjectId tId = idMan.readObjectId(bb); Thread thread = (Thread) tId.getObject(); - VMFrame frame = VMVirtualMachine.getFrame(thread, bb); + long frameID = bb.getLong(); + VMFrame frame = VMVirtualMachine.getFrame(thread, frameID); Object thisObject = frame.getObject(); Value.writeTaggedValue(os, thisObject); |