This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/15028] regressions with dwz -m


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]