changeset 566:4b72c2556789

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:56:31 +0100
parents 825f23a4f262
children 321854d9ab19
files make/Makefile
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/Makefile	Thu Apr 16 11:23:02 2009 -0700
+++ b/make/Makefile	Fri Apr 17 15:56:31 2009 +0100
@@ -105,6 +105,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