daniel.daugherty@Eng 2001-01-19
While chasing a different bug, I tried to use jdb with the current
ladybird_baseline and failed miserably. I backtracked the breakage
to the suspend/resume putback on 2001.01.08.
Build 13 - jdb works
20010105 - jdb works
20010108 - jdb fails
Looks like there is a problem with suspend/resume and jdb.
::::::::::::::
HelloWorld.java
::::::::::::::
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello, world!");
}
}
user% $JAVA_HOME/bin/java -showversion HelloWorld
java version "1.3.1beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b13)
Java HotSpot(TM) Client VM (build 1.3.1beta-b13, mixed mode)
Hello, world!
user% $JAVA_HOME/bin/jdb HelloWorld
Initializing jdb...
> stop in HelloWorld.main
Deferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
> run HelloWorld
>
VM Started: Set deferred breakpoint HelloWorld.main
Breakpoint hit: thread="main", HelloWorld.main(), line=3, bci=0
3 System.out.println("Hello, world!");
main[1] step
Hello, world!
Step completed: thread="main", HelloWorld.main(), line=4, bci=8
4 }
main[1] step
The application exited
user% $JAVA_HOME/bin/java -showversion HelloWorld
java version "1.3.1beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1beta-b13)
Java HotSpot(TM) Client VM (build product+1.3.1+ladybird_baseline+compiler1+20010108-100457-release, mixed mode)
# FAIL: the program runs to the end before the breakpoint is set
user% $JAVA_HOME/bin/jdb HelloWorld
Initializing jdb...
> stop in HelloWorld.main
Deferring breakpoint HelloWorld.main.
It will be set after the class is loaded.
> run HelloWorld
Hello, world!
Set deferredbreakpoint HelloWorld.main
>
VM Started:
> where
No thread specified.