From 754dd031077d8387f723399c16c0b7b0710aca0b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 23 May 2009 09:32:47 +0000 Subject: [PATCH] * coffread.c (process_coff_symbol): Set the symbol's language to the language of current_subfile. --- gdb/ChangeLog | 2 ++ gdb/coffread.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1cfc3ee6618..496ea3b8043 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -6,6 +6,8 @@ * coffread.c (coff_symtab_read): Set language_minimal as the language for the "_globals_" pseudo-file. + (process_coff_symbol): Set the symbol's language to the language + of current_subfile. 2009-05-22 Pedro Alves diff --git a/gdb/coffread.c b/gdb/coffread.c index c5b5722c7fa..30b7726ae26 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1487,7 +1487,7 @@ process_coff_symbol (struct coff_symbol *cs, memset (sym, 0, sizeof (struct symbol)); name = cs->c_name; name = EXTERNAL_NAME (name, objfile->obfd); - SYMBOL_LANGUAGE (sym) = language_auto; + SYMBOL_LANGUAGE (sym) = current_subfile->language; SYMBOL_SET_NAMES (sym, name, strlen (name), objfile); /* default assumptions */ -- 2.30.2