Fri, 17 Apr 2009 15:56:06 +0100
6829575: 100028: Debug information is incomplete or missing
Summary: Enable debugging in many places
Reviewed-by: ohair
Contributed-by: Andrew Haley <aph@redhat.com>
make/Makefile | file | annotate | diff | comparison | revisions | |
make/build.xml | file | annotate | diff | comparison | revisions |
1.1 --- a/make/Makefile Thu Apr 16 11:22:46 2009 -0700 1.2 +++ b/make/Makefile Fri Apr 17 15:56:06 2009 +0100 1.3 @@ -69,6 +69,14 @@ 1.4 endif 1.5 endif 1.6 1.7 +ifeq ($(DEBUG_CLASSFILES), true) 1.8 + ANT_OPTIONS += -Djavac.debug=true 1.9 + ANT_OPTIONS += -Djavac.debuglevel=source,lines,vars 1.10 +else 1.11 + ANT_OPTIONS += -Djavac.debug=false 1.12 + ANT_OPTIONS += -Djavac.debuglevel= 1.13 +endif 1.14 + 1.15 # Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN) 1.16 # and the somewhat misnamed CLASS_VERSION (-target NN) 1.17 ifdef TARGET_CLASS_VERSION
2.1 --- a/make/build.xml Thu Apr 16 11:22:46 2009 -0700 2.2 +++ b/make/build.xml Fri Apr 17 15:56:06 2009 +0100 2.3 @@ -98,6 +98,7 @@ 2.4 destdir="${build.classes.dir}" 2.5 memoryInitialSize="${javac.memoryInitialSize}" 2.6 memoryMaximumSize="${javac.memoryMaximumSize}" 2.7 + debug="${javac.debug}" 2.8 target="${javac.target}" 2.9 excludes="com/sun/tools/internal/txw2/**"> 2.10 <compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/>