diff options
author | Tom Tromey <tromey@redhat.com> | 2013-08-07 20:10:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-08-07 20:10:36 +0000 |
commit | b93601f3204e29392671b393fc878c2b8c9d5613 (patch) | |
tree | 8ab72afaef1c17f9138100ab5996a94b241b6149 /opcodes | |
parent | fa760f46b50745385bf9a738e55064e7b32430db (diff) | |
download | gdb-b93601f3204e29392671b393fc878c2b8c9d5613.zip gdb-b93601f3204e29392671b393fc878c2b8c9d5613.tar.gz gdb-b93601f3204e29392671b393fc878c2b8c9d5613.tar.bz2 |
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.
Diffstat (limited to 'opcodes')
0 files changed, 0 insertions, 0 deletions