Mercurial > hg > truffle
changeset 770:f5ee65f94d9a
Merge
author | ohair |
---|---|
date | Fri, 15 May 2009 13:41:04 -0700 |
parents | 116b019a3961 (diff) aa0c48844632 (current diff) |
children | a77eddcd510c |
files | make/jprt.config make/linux/makefiles/gcc.make make/linux/makefiles/jsig.make make/linux/makefiles/saproc.make |
diffstat | 4 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make Thu May 14 10:57:58 2009 -0700 +++ b/make/linux/makefiles/gcc.make Fri May 15 13:41:04 2009 -0700 @@ -171,3 +171,9 @@ ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) DEBUG_CFLAGS += -gstabs endif + +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + DEBUG_CFLAGS = -g + CFLAGS += $(DEBUG_CFLAGS) +endif
--- a/make/linux/makefiles/jsig.make Thu May 14 10:57:58 2009 -0700 +++ b/make/linux/makefiles/jsig.make Fri May 15 13:41:04 2009 -0700 @@ -41,10 +41,15 @@ LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + JSIG_DEBUG_CFLAGS = -g +endif + $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) @echo Making signal interposition lib... $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ - $(LFLAGS_JSIG) -o $@ $< -ldl + $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl install_jsig: $(LIBJSIG) @echo "Copying $(LIBJSIG) to $(DEST_JSIG)"
--- a/make/linux/makefiles/saproc.make Thu May 14 10:57:58 2009 -0700 +++ b/make/linux/makefiles/saproc.make Fri May 15 13:41:04 2009 -0700 @@ -43,6 +43,11 @@ DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC) +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + SA_DEBUG_CFLAGS = -g +endif + # if $(AGENT_DIR) does not exist, we don't build SA # also, we don't build SA on Itanium. @@ -67,6 +72,7 @@ -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family) \ $(SASRCFILES) \ $(SA_LFLAGS) \ + $(SA_DEBUG_CFLAGS) \ -o $@ \ -lthread_db
--- a/src/share/vm/adlc/filebuff.hpp Thu May 14 10:57:58 2009 -0700 +++ b/src/share/vm/adlc/filebuff.hpp Fri May 15 13:41:04 2009 -0700 @@ -73,7 +73,7 @@ // This converts a pointer into the buffer to a file offset. It only works // when the pointer is valid (i.e. just obtained from getline()). - long getoff(const char* s) { return _bufoff + (s - _buf); } + long getoff(const char* s) { return _bufoff + (long)(s - _buf); } }; //------------------------------FileBuffRegion---------------------------------