RFR: 8033251: Use DWARF debug symbols for Linux 32-bit as default

Coleen Phillimore coleen.phillimore at oracle.com
Fri Mar 28 16:30:06 UTC 2014


I thought you'd be able to remove the DEBUG_BINARIES logic with this 
change.  It appears there are no platforms left that use stabs with 
gcc.  Does this change add -g for saproc, adlc and jsig compilations also?

Coleen

On 3/28/14 12:12 PM, Erik Helin wrote:
> Hi all,
>
> this patch changes the Linux Makefiles to use DWARF as the default 
> debug symbol format for Linux 32-bit instead of STABS. The main 
> arguments for using DWARF are:
>
>   - DWARF provides a superior debugging experience compared to STABS.
>   - STABS support in GCC/GDB is in maintenance mode [0].
>   - External tools (e.g. perf on Linux) often understands DWARF but not
>     STABS.
>   - Compilation on 32-bit Linux can make use of precompiled headers.
>
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8033251/webrev.00/
>
> Testing:
> - Compiling with GCC 4.3.4, GCC 4.7.3 and GCC 4.8.1
> - JPRT
>
> Thanks,
> Erik
>
> [0]: https://sourceware.org/ml/binutils/2013-01/msg00028.html



More information about the hotspot-dev mailing list