Mac problem(?), new build, --with-debug-level=slowdebug
david.r.chase at oracle.com
Wed Jan 9 18:43:13 UTC 2013
Summary: I wanted to debug, I configured thoroughly with slowdebug, but was not able to debug the result.
I configured jdk8tl in common/makefiles,
sh ../autoconf/configure --with-debug-level=slowdebug
cleaned, and then built:
make CONF=macosx-x86_64-normal-server-slowdebug images
Then export JAVA_HOME=/Users/dr2chase/work/jdk8tl/build/macosx-x86_64-normal-server-slowdebug/images/j2sdk-image
Then in hotspot-comp, I also configure for slowdebug, and
make CONF=macosx-x86_64-normal-server-slowdebug all
I then attempt to debug gamma:
DYLD_LIBRARY_PATH=. ./gamma -version
Using java runtime at: /Users/dr2chase/work/jdk8tl/build/macosx-x86_64-normal-server-slowdebug/images/j2sdk-image/jre
openjdk version "1.8.0-internal-debug"
OpenJDK Runtime Environment (build 1.8.0-internal-debug-dr2chase_2013_01_09_11_52-b00)
OpenJDK 64-Bit Server VM (build 25.0-b15, mixed mode)
DYLD_LIBRARY_PATH=. gdb ./gamma
And I seem to get no symbols. Line numbers don't match code, I can't print variables, etc.
Other people (Vladimir Kozlov) using old build DO get symbols, and CAN print variables.
We're running the same version of the OS, and the same version of gdb.
I cannot tell if this is pilot error or a bug. Are there any suggestions for missteps I might have made?
If necessary, I can distill this down to about a dozen commands to reproduce, though it takes time to run them.
More information about the build-dev