]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fix PR symtab/15028
authorTom Tromey <tromey@redhat.com>
Wed, 7 Aug 2013 20:10:36 +0000 (20:10 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 7 Aug 2013 20:10:36 +0000 (20:10 +0000)
commitb93601f3204e29392671b393fc878c2b8c9d5613
tree8ab72afaef1c17f9138100ab5996a94b241b6149
parentfa760f46b50745385bf9a738e55064e7b32430db
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.
gdb/ChangeLog
gdb/dwarf2read.c