aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-05-23 09:32:47 +0000
committerEli Zaretskii <eliz@gnu.org>2009-05-23 09:32:47 +0000
commit754dd031077d8387f723399c16c0b7b0710aca0b (patch)
treec83d61cec7c62df6347dede9fde479834bb2af0a /gdb/coffread.c
parent969107c54a602bf35d13a6290e77eb1ccf16bbb2 (diff)
downloadgdb-754dd031077d8387f723399c16c0b7b0710aca0b.zip
gdb-754dd031077d8387f723399c16c0b7b0710aca0b.tar.gz
gdb-754dd031077d8387f723399c16c0b7b0710aca0b.tar.bz2
* coffread.c (process_coff_symbol): Set the symbol's language to
the language of current_subfile.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index c5b5722..30b7726 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 */