Linux fastdebug build with debug info
Hiroshi Yamauchi
yamauchi at google.com
Tue May 19 21:32:48 PDT 2009
Hi,
If I build a fastdebug VM on Linux (based on openjdk6 b11), the
libjvm.so does not get the debug info (symbols and line numbers used
mainly in gdb). If I copy'n'paste the following lines from jvmg.make
to fastdebug.make (under hotspot/build/linux/makefiles), I get the
debug info.
# The following lines were copied from jvmg.make
# Compiler specific DEBUG_CFLAGS are passed in from gcc.make, sparcWorks.make
DEBUG_CFLAGS/DEFAULT= $(DEBUG_CFLAGS)
DEBUG_CFLAGS/BYFILE =
$(DEBUG_CFLAGS/$@)$(DEBUG_CFLAGS/DEFAULT$(DEBUG_CFLAGS/$@) )
CFLAGS += $(DEBUG_CFLAGS/BYFILE)
Is this valid?
Is there any historic reason why -g isn't used in the fastdebug build
on Linux (such as conflict between -O and -g)?
I think the fastdebug should have -g by definition.
Thanks,
Hiroshi
More information about the hotspot-dev
mailing list