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 #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    tromey@sourceware.org    2013-08-07 20:10:36

Modified files:
    gdb            : ChangeLog dwarf2read.c 

Log message:
    fix PR symtab/15028

    This fixes some derivation.exp regressions with "dwz -m".

    The bug here is that the imported PU is given language_minimal.
    However, it ought to be C++.

    The "pretend language" machinery exists to solve this problem, but it
    wasn't handled in process_psymtab_comp_unit.  So, this patch adds it
    there.

    Built and regtested, both normally and using "dwz -m", on x86-64
    Fedora 18.

    PR symtab/15028:
    * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
    (process_psymtab_comp_unit_reader): Use it.
    (process_psymtab_comp_unit): Update.  Add "pretend_language"
    argument.
    (dwarf2_build_psymtabs_hard): Update.
    (scan_partial_symbols): Pass CU's language to
    process_psymtab_comp_unit.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15872&r2=1.15873
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.823&r2=1.824

-- 
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]