Consider this simple example: class K { public: virtual int x() { return 23; } };
K k; This yields this attribute in the dwarf: <7a> DW_AT_vtable_elem_location: 2 byte block: 10 0 (DW_OP_constu: 0) However, this is incorrect. The location description ought to compute the address of the vtable slot. -- Summary: wrong location description for DW_AT_vtable_elem_location Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tromey at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44126