aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorSami Wagiaalla <swagiaal@redhat.com>2010-08-09 19:42:48 +0000
committerSami Wagiaalla <swagiaal@redhat.com>2010-08-09 19:42:48 +0000
commit33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c (patch)
tree8b4356fc8833355173d0ab685e2d4d9851727b14 /gdb/coffread.c
parent955974c6c5ddc44febc20560a975a76acf3aa5ca (diff)
downloadgdb-33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c.zip
gdb-33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c.tar.gz
gdb-33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c.tar.bz2
create and use symbol_set_language.
2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to SYMBOL_SET_LANGUAGE. (symbol_init_language_specific): Renamed to symbol_set_language. * symtab.c (symbol_init_language_specific): Removed redundant check for language_cplus. Renamed to symbol_set_language. * stabsread.c (define_symbol): Updated. (read_enum_type): Updated * psymtab.c (add_psymbol_to_bcache): Updated. * minsyms.c (install_minimal_symbols): Updated. * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of SYMBOL_LANGUAGE to set the language. * minsyms.c (prim_record_minimal_symbol_full): Ditto. * mdebugread.c (new_symbol): Ditto. * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. * dwarf2read.c (new_symbol_full): Ditto. * jv-lang.c (add_class_symbol): Ditto.
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 52417b2..85e8140 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -1512,7 +1512,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) = current_subfile->language;
+ SYMBOL_SET_LANGUAGE (sym, current_subfile->language);
SYMBOL_SET_NAMES (sym, name, strlen (name), 1, objfile);
/* default assumptions */