This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2012 18:34:08 +0000
- Subject: [Bug debug/37237] Debug information for virtual destructors omits DW_AT_vtable_elem_location
- Auto-submitted: auto-generated
- References: <bug-37237-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37237
--- Comment #8 from Tom Tromey <tromey at gcc dot gnu.org> 2012-07-12 18:34:08 UTC ---
I'd like to ping this again.
I've been working on adding support for new and delete to gdb.
The missing debuginfo here is a barrier to this.
I think gdb would generally like to call the deleting destructor
when it is available. Right now there is no way to find this
destructor from the debuginfo.
I agree this would require a DWARF extension. I think something
like DW_AT_destructor with values DW_DESTRUCTOR_complete_object,
DW_DESTRUCTOR_deleting, and DW_DESTRUCTOR_base_object.
I can file a bug on dwarfstd.org if you think this makes sense.