some more refactoring

This commit is contained in:
Shu Lei
2007-10-12 23:39:27 +00:00
parent 38dafdb190
commit 70442348a1
3 changed files with 34 additions and 23 deletions

View File

@@ -128,12 +128,13 @@ public class DebugStackState extends StackState implements DebugRequestListener
// debug hooks
public void debugHooks( int pc ) {
if(DebugUtils.IS_DEBUG)
if ( exiting ) {
throw new AbortException("aborted by debug client");
}
if(DebugUtils.IS_DEBUG)
DebugUtils.println("entered debugHook...");
if ( exiting )
throw new AbortException("exiting");
synchronized ( this ) {
// anytime the line doesn't change we keep going