changeset 2830:2c7571fb9056

6829575: 100028: Debug information is incomplete or missing Summary: Enable debugging in many places Reviewed-by: ohair Contributed-by: Andrew Haley <aph@redhat.com>
author aph
date Fri, 17 Apr 2009 15:55:53 +0100
parents a8134c4ee2cf
children 8ae6ec237119
files jaxp/make/Makefile jaxp/make/build.xml
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jaxp/make/Makefile	Wed Jul 05 16:51:35 2017 +0200
+++ b/jaxp/make/Makefile	Fri Apr 17 15:55:53 2009 +0100
@@ -69,6 +69,14 @@
   endif
 endif
 
+ifeq ($(DEBUG_CLASSFILES), true)
+  ANT_OPTIONS += -Djavac.debug=true
+  ANT_OPTIONS += -Djavac.debuglevel=source,lines,vars
+else
+  ANT_OPTIONS += -Djavac.debug=false
+  ANT_OPTIONS += -Djavac.debuglevel=
+endif
+
 # Note: jdk/make/common/Defs.gmk uses LANGUAGE_VERSION (-source NN)
 # and the somewhat misnamed CLASS_VERSION (-target NN)
 ifdef TARGET_CLASS_VERSION
--- a/jaxp/make/build.xml	Wed Jul 05 16:51:35 2017 +0200
+++ b/jaxp/make/build.xml	Fri Apr 17 15:55:53 2009 +0100
@@ -85,6 +85,7 @@
              destdir="${build.classes.dir}"
              memoryInitialSize="${javac.memoryInitialSize}"
              memoryMaximumSize="${javac.memoryMaximumSize}"
+	     debug="${javac.debug}"
              target="${javac.target}">
          <compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/>
          <compilerarg line="${javac.version.opt}"/>