PR symtab/12441:
authorTom Tromey <tromey@redhat.com>
Mon, 28 Mar 2011 19:53:14 +0000 (19:53 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 28 Mar 2011 19:53:14 +0000 (19:53 +0000)
* dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
with `language_minimal'.

gdb/ChangeLog
gdb/dwarf2read.c

index a21aa81bb0f6ac3c8c6603715e362635d07732a7..bad0948de74b0f9e01eb7f34e9b22f0d5d15ac47 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-28  Tom Tromey  <tromey@redhat.com>
+
+       PR symtab/12441:
+       * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
+       with `language_minimal'.
+
 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
index 0cc5ca0515310188e05539ea5617b117b4f66593..709e81d7a841253b0743fb8770ea189c23abd38d 100644 (file)
@@ -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