8015087: Provide debugging information for programs jdk8-b91

Wed, 22 May 2013 13:49:12 +0100

author
andrew
date
Wed, 22 May 2013 13:49:12 +0100
changeset 715
cb51fb4789ac
parent 714
e83abb0a04ab
child 716
f089df41bff5
child 717
e247ee3924d5

8015087: Provide debugging information for programs
Summary: Enable debugging info on programs in OpenJDK builds
Reviewed-by: erikj

common/makefiles/NativeCompilation.gmk file | annotate | diff | comparison | revisions
     1.1 --- a/common/makefiles/NativeCompilation.gmk	Tue May 21 12:51:10 2013 -0700
     1.2 +++ b/common/makefiles/NativeCompilation.gmk	Wed May 22 13:49:12 2013 +0100
     1.3 @@ -321,11 +321,17 @@
     1.4  
     1.5      ifneq (,$$($1_DEBUG_SYMBOLS))	
     1.6          ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
     1.7 -            # Programs don't get the debug symbols added in the old build. It's not clear if
     1.8 -            # this is intentional.
     1.9 -            ifeq ($$($1_PROGRAM),)
    1.10 +	    ifdef OPENJDK
    1.11 +	        # Always add debug symbols
    1.12                  $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
    1.13                  $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
    1.14 +	    else
    1.15 +                # Programs don't get the debug symbols added in the old build. It's not clear if
    1.16 +                # this is intentional.
    1.17 +                ifeq ($$($1_PROGRAM),)
    1.18 +                    $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
    1.19 +                    $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
    1.20 +                endif
    1.21              endif
    1.22          endif
    1.23      endif

mercurial