From 9cded63fc15053473ec65ac6e2805608e882449d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 28 Mar 2011 19:53:14 +0000 Subject: [PATCH] PR symtab/12441: * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language with `language_minimal'. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a21aa81bb0f..bad0948de74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2011-03-28 Tom Tromey + + PR symtab/12441: + * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language + with `language_minimal'. + 2011-03-25 Ulrich Weigand * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 0cc5ca05153..709e81d7a84 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 -- 2.30.2