This patch fixes JDWP so when a Resume command is sent to a thread, it
will correctly call VMVirtualMachine.resumeThread instead of calling
VMVirtualMachine.suspendThread again. Currently, it is impossible to
Resume a thread once you have suspended it with JDWP, this patch fixes
that problem.
ChangeLog
2007-03-27 Kyle Galloway <[EMAIL PROTECTED]>
* gnu/classpth/jdwp/processor/ThreadReferenceCommandSet.java
(executeResume): Cheange to call VMVirtualMachine.resumeThread.
Questions/comments/concerns?
- Kyle
Index: gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java,v
retrieving revision 1.8
diff -u -r1.8 ThreadReferenceCommandSet.java
--- gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java 1 Mar 2007 02:02:36 -0000 1.8
+++ gnu/classpath/jdwp/processor/ThreadReferenceCommandSet.java 27 Mar 2007 18:47:19 -0000
@@ -142,7 +142,7 @@
{
ThreadId tid = (ThreadId) idMan.readObjectId(bb);
Thread thread = tid.getThread();
- VMVirtualMachine.suspendThread(thread);
+ VMVirtualMachine.resumeThread(thread);
}
private void executeStatus(ByteBuffer bb, DataOutputStream os)