aboutsummaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authoraph <none@none>2009-04-17 15:55:53 +0100
committeraph <none@none>2009-04-17 15:55:53 +0100
commitb58d6bfe7a460dbbd71e49be11015f8b98de9637 (patch)
treeb0f79de0e18727062cdefdd3e02da66221418943 /make
parentb9df265ccce377f38aaed0dcf7caf71003b126e2 (diff)
downloadjdk8u_jaxp-b58d6bfe7a460dbbd71e49be11015f8b98de9637.tar.gz
6829575: 100028: Debug information is incomplete or missing
Summary: Enable debugging in many places Reviewed-by: ohair Contributed-by: Andrew Haley <aph@redhat.com>
Diffstat (limited to 'make')
-rw-r--r--make/Makefile8
-rw-r--r--make/build.xml1
2 files changed, 9 insertions, 0 deletions
diff --git a/make/Makefile b/make/Makefile
index e8ea334..fc1f301 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -69,6 +69,14 @@ else
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
diff --git a/make/build.xml b/make/build.xml
index 6aeb673..277e0c9 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -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}"/>