This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: less dwarf2 debug info stored in .o on ia64
On Mon, 2004-01-12 at 21:01, Rens Sankar wrote:
> And with the .o file having dwarf2 info, we are unable to display the
> info
> on the unnamed padding fields. This leads to difference in the
> declaration
> of the structure in the header file and displayed by the tool.
Is this a significant difference? Does it impair operation of the tool?
> We tried going through gcc source code but could not get much headway in
> dwarf2out.c. If you could kindly point to the general direction
> (e.g. function names etc.) where this decision is taken, we can try to
> study the code more.
I believe the bit in question is in gen_decl_die, at the FIELD_DECL
case, and the check DECL_NAME (decl) != NULL_TREE. This could perhaps
depend on the existing flag_eliminate_unused_debug_types. You should
check to see how much extra debug info this emits. If this starts
emitting debug info for unnamed C++ vtable fields that no one cares
about, then we might need additional checks to get just the C language
unnamed structure fields that you want. If this doesn't emit much extra
info, then it might be reasonable to do it by default.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com