* coffread.c (process_coff_symbol): Set the symbol's language to
authorEli Zaretskii <eliz@gnu.org>
Sat, 23 May 2009 09:32:47 +0000 (09:32 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 23 May 2009 09:32:47 +0000 (09:32 +0000)
the language of current_subfile.

gdb/ChangeLog
gdb/coffread.c

index 1cfc3ee6618109463b8f46be851065e7d55d674a..496ea3b8043506817e6e7d14a01fec9df90112d8 100644 (file)
@@ -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  <pedro@codesourcery.com>
 
index c5b5722c7fae1a2dc5460768bd80a8b2ddfcc272..30b7726ae26f4e94a6b1daf16409da8130553ca0 100644 (file)
@@ -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 */