diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-08-09 19:42:48 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-08-09 19:42:48 +0000 |
commit | 33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c (patch) | |
tree | 8b4356fc8833355173d0ab685e2d4d9851727b14 /gdb/minsyms.c | |
parent | 955974c6c5ddc44febc20560a975a76acf3aa5ca (diff) | |
download | binutils-gdb-33e5013ed29270c3b6c5eaf46225e66b0fb6bc2c.tar.gz |
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/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index cb4545c06fc..0a57e774efb 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -833,8 +833,7 @@ prim_record_minimal_symbol_full (const char *name, int name_len, int copy_name, msym_bunch = new; } msymbol = &msym_bunch->contents[msym_bunch_index]; - SYMBOL_INIT_LANGUAGE_SPECIFIC (msymbol, language_unknown); - SYMBOL_LANGUAGE (msymbol) = language_auto; + SYMBOL_SET_LANGUAGE (msymbol, language_auto); SYMBOL_SET_NAMES (msymbol, name, name_len, copy_name, objfile); SYMBOL_VALUE_ADDRESS (msymbol) = address; @@ -1145,7 +1144,7 @@ install_minimal_symbols (struct objfile *objfile) MSYMBOL_TARGET_FLAG_2 (&msymbols[mcount]) = 0; MSYMBOL_SIZE (&msymbols[mcount]) = 0; MSYMBOL_TYPE (&msymbols[mcount]) = mst_unknown; - SYMBOL_INIT_LANGUAGE_SPECIFIC (&msymbols[mcount], language_unknown); + SYMBOL_SET_LANGUAGE (&msymbols[mcount], language_unknown); /* Attach the minimal symbol table to the specified objfile. The strings themselves are also located in the objfile_obstack |