Hi,

Okay, I am preparing for the next round of patches (mostly for gcj), and I've got a few small cleanups for Classpath's JDWP implementation, too.

I've committed the following simple patch.

Keith

2006-02-16  Keith Seitz  <[EMAIL PROTECTED]>

        * gnu/classpath/jdwp/Jdwp.java (_doInitialization): Name the packet
        processor thread for easier debugging.
        (_enforceSuspendPolicy): Suspend the current thread, not the JDWP
        main thread.
Index: gnu/classpath/jdwp/Jdwp.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/classpath/jdwp/Jdwp.java,v
retrieving revision 1.2
diff -u -p -r1.2 Jdwp.java
--- gnu/classpath/jdwp/Jdwp.java	16 Dec 2005 23:15:54 -0000	1.2
+++ gnu/classpath/jdwp/Jdwp.java	16 Feb 2006 20:08:57 -0000
@@ -1,5 +1,5 @@
 /* Jdwp.java -- Virtual machine to JDWP back-end programming interface
-   Copyright (C) 2005 Free Software Foundation
+   Copyright (C) 2005, 2006 Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -159,7 +159,7 @@ public class Jdwp
 	{
 	  AccessController.doPrivileged (_packetProcessor);
 	}
-      });
+      }, "packet processor");
     _ppThread.start ();
   }
 
@@ -258,7 +258,7 @@ public class Jdwp
 	break;
 
       case EventRequest.SUSPEND_THREAD:
-	VMVirtualMachine.suspendThread (this);
+	VMVirtualMachine.suspendThread (Thread.currentThread ());
 	break;
 
       case EventRequest.SUSPEND_ALL:

Reply via email to