[Bug debug/7081] DWARF enhancements for C++

jcownie@etnus.com gcc-bugzilla@gcc.gnu.org
Tue May 27 11:28:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7081



------- Additional Comments From jcownie@etnus.com  2003-05-27 10:03 -------
Subject: Re:  DWARF enhancements for C++ 


> can you confirm what the current status of this report is?
> Particularly, are the proposed enhancements still missing from gcc 3.3
> and/or gcc mainline? Thanks,

GCC 3.3 still emits DW_TAG_structure_type when DW_TAG_class should be
used. I don't have a mainline gcc to check, but if you do it should be
trivial to do.

Daniel's comment suggests that the second issue (vtable information)
isn't going to get fixed. 

I think that's a pity, because replicating the class layout algorithm
in the debugger seems unnecessarily complex to me (after all, the same
argument would say that there's no need to output offsets for class
members since they can be generated from the ABI too). Having the same
piece of code in the debugger and the compiler leads to the
possibility of actually having a _slightly different_ piece of code in
each place with concomitant bugs, and means that when the ABI changes
(as it did between GCC 2.x and GCC 3.x) the change has to occur in
both places. (Yes, I know, it's _right_ now and isn't ever going to
change again :-)

Whatever, fixing the tag would be worthwhile even if you don't want to
emit information about the vtable pointer.

-- Jim 

James Cownie	<jcownie@etnus.com>
Etnus, LLC.     +44 117 9071438
http://www.etnus.com






------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list