Re: Building libgcc with debug info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/20/13 2:13 AM, Dan Schatzberg wrote:
Hi jasonwucj,

I actually see my CFLAGS variables being used as expected, but no
debug information is generated. If I pass CFLAGS=-gstabs I actually do
get debug info, just not with -g. Why won't it produce dwarf debug
information for libgcc?
---
Dan Schatzberg


Hi, Dan,

I suggest you can try setting HOST_LIBGCC2_CFLAGS first,
see if it does achieve your requirement.

To figure out why it doesn't produce dwarf debug information,
I think it would be good to preserve your libgcc building process
(e.g. make all-target-libgcc | tee make-log).

Then, check the process to understand how it issues options to compile
libgcc stuff, comparing the options against the variables in libgcc/Makefile.in,
especially the variables CFLAGS, LIBGCC2_DEBUG_CFLAGS, LIBGCC2_CFLAGS,
HOST_LIBGCC2_CFLAGS, and INTERNAL_CFLAGS, I believe you will find out
why it is not good to set -g3 in CFLAGS for building libgcc. :)


Best regards,
jasonwucj





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux