Missing debug information for decls in empty blocks
James E Wilson
wilson@specifixinc.com
Fri Aug 6 20:54:00 GMT 2004
Nicolas Setton wrote:
> In the context of examining the state of debug information generation with GCC
> 3.4 and GCC 3.5, we found that nothing is generated for "foo" and "my_struct"
> in a construct like:
I'd call it a bug.
We have new options -fno-eliminate-unused-debug-types and
-fno-eliminate-unused-debug-symbols. The default is to not emit
type/symbol info for unused types and symbols, and these options can be
used to turn this off. However, this makes no difference for this
testcase with gcc-3.5. I would expect to get debug info with the
options, and without the options, it may or may not be there.
Using dwarf2 debug output, I get no info for the type my_struct and the
symbol foo. Using stabs debug output, I get no info for the symbol foo,
but I do get info for the type my_struct.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list