This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DWARF-2, static data members


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]