diff options
| author | Keith Seitz <keiths@redhat.com> | 2006-06-16 18:32:48 +0000 |
|---|---|---|
| committer | Keith Seitz <keiths@redhat.com> | 2006-06-16 18:32:48 +0000 |
| commit | 7dbe98b580a589e2238d7eca21eac7d9ff926abb (patch) | |
| tree | 661c459620273b2179facd92c037f9cda1e7b9d5 /gnu/classpath/jdwp/processor/PacketProcessor.java | |
| parent | b1a6126d193244caeadc1ee6dd15b7bb7517c540 (diff) | |
| download | classpath-7dbe98b580a589e2238d7eca21eac7d9ff926abb.tar.gz | |
* gnu/classpath/jdwp/Jdwp.java (_initLock): New field.
(_initCount): New field.
(Jdwp): Don't set isDebugging until fully initialized.
(subcomponentInitialized): New method.
(run): Wait for PacketProcessor and JdwpConnection to
startup, then set isDebugging, and then let this thread
die.
* gnu/classpath/jdwp/transport/JdwpConnection.java
(run): Add synchronization notification.
* gnu/classpath/jdwp/processor/PacketProcessor.java
(run): Likewise.
Diffstat (limited to 'gnu/classpath/jdwp/processor/PacketProcessor.java')
| -rw-r--r-- | gnu/classpath/jdwp/processor/PacketProcessor.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/classpath/jdwp/processor/PacketProcessor.java b/gnu/classpath/jdwp/processor/PacketProcessor.java index 9e281f217..4df3f4728 100644 --- a/gnu/classpath/jdwp/processor/PacketProcessor.java +++ b/gnu/classpath/jdwp/processor/PacketProcessor.java @@ -1,6 +1,6 @@ /* PacketProcessor.java -- a thread which processes command packets from the debugger - Copyright (C) 2005 Free Software Foundation + Copyright (C) 2005, 2006 Free Software Foundation This file is part of GNU Classpath. @@ -137,6 +137,10 @@ public class PacketProcessor */ public Object run () { + // Notify initialization thread (gnu.classpath.jdwp.Jdwp) that + // the PacketProcessor thread is ready. + Jdwp.getDefault().subcomponentInitialized (); + try { while (!_shutdown) @@ -144,7 +148,7 @@ public class PacketProcessor _processOnePacket (); } } - catch (IOException ex) + catch (Exception ex) { ex.printStackTrace(); } |
