Linux fastdebug build with debug info
yamauchi at google.com
Tue May 19 21:32:48 PDT 2009
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
# The following lines were copied from jvmg.make
# Compiler specific DEBUG_CFLAGS are passed in from gcc.make, sparcWorks.make
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.
More information about the hotspot-dev