aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-03-28 19:53:14 +0000
committerTom Tromey <tromey@redhat.com>2011-03-28 19:53:14 +0000
commit9cded63fc15053473ec65ac6e2805608e882449d (patch)
treeefd5403b31104ca69eb9376155b4479ccb957b4b /gdb/dwarf2read.c
parent8786b2bd8f01113ae3851e2d4977ffbe94dcb2b0 (diff)
downloadgdb-9cded63fc15053473ec65ac6e2805608e882449d.zip
gdb-9cded63fc15053473ec65ac6e2805608e882449d.tar.gz
gdb-9cded63fc15053473ec65ac6e2805608e882449d.tar.bz2
PR symtab/12441:
* dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language with `language_minimal'.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 0cc5ca0..709e81d 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -14679,7 +14679,10 @@ prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die)
if (attr)
set_cu_language (DW_UNSND (attr), cu);
else
- set_cu_language (language_minimal, cu);
+ {
+ cu->language = language_minimal;
+ cu->language_defn = language_def (cu->language);
+ }
}
/* Release one cached compilation unit, CU. We unlink it from the tree