Is slowdebug supposed to also compile JNI portions of JDK with -g?
David Chase
david.r.chase at oracle.com
Thu May 9 18:10:37 UTC 2013
Because for me it did not, at least not on a Mac.
My workaround, which was not too painful because the new build seems to use fully-qualified path names:
touch jdk/src/share/native/java/util/zip/CRC32.c
make images CONF=macosx-x86_64-normal-server-slowdebug LOG=debug
...
touch jdk/src/share/native/java/util/zip/CRC32.c
# copy compilation command line from above log, add -g, paste
... /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 -g ... /Users/dr2chase/work/jdk8tl-full/jdk/src/share/native/java/util/zip/CRC32.c
make images CONF=macosx-x86_64-normal-server-slowdebug LOG=debug
and now I am debugging.
But it would be better yet to compile those files for debugging.
David
More information about the build-dev
mailing list