39 |
|
|
40 |
package gnu.classpath.jdwp.processor; |
package gnu.classpath.jdwp.processor; |
41 |
|
|
|
import gnu.classpath.jdwp.VMFrame; |
|
42 |
import gnu.classpath.jdwp.JdwpConstants; |
import gnu.classpath.jdwp.JdwpConstants; |
43 |
|
import gnu.classpath.jdwp.VMFrame; |
44 |
|
import gnu.classpath.jdwp.VMVirtualMachine; |
45 |
import gnu.classpath.jdwp.exception.JdwpException; |
import gnu.classpath.jdwp.exception.JdwpException; |
46 |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
47 |
import gnu.classpath.jdwp.exception.NotImplementedException; |
import gnu.classpath.jdwp.exception.NotImplementedException; |
106 |
// has a reference to them. Furthermore they are not ReferenceTypeIds since |
// has a reference to them. Furthermore they are not ReferenceTypeIds since |
107 |
// these are held permanently and we want these to be held only as long as |
// these are held permanently and we want these to be held only as long as |
108 |
// the Thread is suspended. |
// the Thread is suspended. |
109 |
VMFrame frame = vm.getVMFrame(thread, bb); |
VMFrame frame = VMVirtualMachine.getFrame(thread, bb); |
110 |
int slots = bb.getInt(); |
int slots = bb.getInt(); |
111 |
os.writeInt(slots); // Looks pointless but this is the protocol |
os.writeInt(slots); // Looks pointless but this is the protocol |
112 |
for (int i = 0; i < slots; i++) |
for (int i = 0; i < slots; i++) |
124 |
ObjectId tId = idMan.readObjectId(bb); |
ObjectId tId = idMan.readObjectId(bb); |
125 |
Thread thread = (Thread) tId.getObject(); |
Thread thread = (Thread) tId.getObject(); |
126 |
|
|
127 |
VMFrame frame = vm.getVMFrame(thread, bb); |
VMFrame frame = VMVirtualMachine.getFrame(thread, bb); |
128 |
|
|
129 |
int slots = bb.getInt(); |
int slots = bb.getInt(); |
130 |
for (int i = 0; i < slots; i++) |
for (int i = 0; i < slots; i++) |
141 |
ObjectId tId = idMan.readObjectId(bb); |
ObjectId tId = idMan.readObjectId(bb); |
142 |
Thread thread = (Thread) tId.getObject(); |
Thread thread = (Thread) tId.getObject(); |
143 |
|
|
144 |
VMFrame frame = vm.getVMFrame(thread, bb); |
VMFrame frame = VMVirtualMachine.getFrame(thread, bb); |
145 |
|
|
146 |
Object thisObject = frame.getObject(); |
Object thisObject = frame.getObject(); |
147 |
Value.writeTaggedValue(os, thisObject); |
Value.writeTaggedValue(os, thisObject); |