As mentioned in http://bugzilla.redhat.com/530304 , we shouldn't be adding DW_AT_name: <anonymous struct> and similar, the aggregates don't have any name. Similarly, adding ._0 etc. to .debug_pubtypes looks wrong.
-- Summary: DW_AT_name should not be present for anonymous aggregates Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: wrong-debug Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41828