This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/15028] regressions with dwz -m
- From: "tromey at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 29 Jan 2013 18:37:42 +0000
- Subject: [Bug symtab/15028] regressions with dwz -m
- Auto-submitted: auto-generated
- References: <bug-15028-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15028
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2013-01-29 18:37:42 UTC ---
Fixing the first problem yields a different regression:
FAIL: gdb.cp/anon-struct.exp: print type of X::t2::t2
This happens because namespace X appears in both the primary
file as:
<1><2e>: Abbrev Number: 9 (DW_TAG_namespace)
<2f> DW_AT_name : X
<31> DW_AT_decl_file : 1
<32> DW_AT_decl_line : 31
<33> DW_AT_sibling : <0x35>
and in the .dwz file as:
<1><68>: Abbrev Number: 10 (DW_TAG_namespace)
<69> DW_AT_name : X
<6b> DW_AT_sibling : <0x86>
[children]
... and symbol lookup in gdb picks the wrong one.
This seems reasonably tricky to solve in the general case.
One option might be to get dwz to add DW_AT_extension in this scenario.
Alternatively maybe we could hack around it somehow.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.