DWARF-2, static data members

Jim Blandy jimb@redhat.com
Tue Aug 13 15:29:00 GMT 2002


David Carlton <carlton@math.stanford.edu> writes:
> > Have you run `readelf -wi' on the executable, or run GCC with
> > `-save-temps -dA' and looked at the .s file, to see what GCC is
> > actually generating?  I think GCC does generate children of
> > struct/class types with the DW_TAG_variable tag.
> 
> I'll have to look up what those arguments mean :-), but I did do g++
> -S yesterday and went through the .s file by hand.  (Fun, and
> educational, though I don't plan to do it too often.)  It really is
> generating DW_TAG_variable tags instead of DW_TAG_member tags.

Heh.  Do try out -save-temps -dA.  :)

> > You might put together a fix for GCC, too --- dwarf2out.c is big,
> > but it doesn't seem too bad.  This would allow you to actually test
> > your changes.
> 
> I'll give it a look.  I did submit a PR for GCC, so at least it's in
> their bug database.

Sounds good.



More information about the Gdb mailing list