RFC: C/C++ preprocessor macro support for GDB

Zack Weinberg zack@codesourcery.com
Sun Mar 17 00:11:00 GMT 2002


On Sun, Mar 17, 2002 at 01:23:06AM -0500, Jim Blandy wrote:
> 
> The patch reads Dwarf 2 macro information, which GCC doesn't currently
> generate.  (In fact, I don't know if any compiler generates it at the
> moment.)  I've tested it against some hand-written ".debug_macinfo"
> sections, which I'll post in the next message.  So it's not actually
> useful yet.

Did you try -gdwarf-2 -g3 (i.e. level 3 of dwarf2 debug)?  It's not
generated by default due to the space cost, but I think GCC will do
it.

zw



More information about the Gcc mailing list