* ada-lang.c: Update throughout to use symbol_matches_domain
authorAleksandar Ristovski <aristovski@qnx.com>
Mon, 5 May 2008 14:37:32 +0000 (14:37 +0000)
committerAleksandar Ristovski <aristovski@qnx.com>
Mon, 5 May 2008 14:37:32 +0000 (14:37 +0000)
commit5eeb2539423ce5e7241bce403f48b8babb3670b0
treecc6f859e82b96a7c8554b3ca90847ca96b571fe9
parente8db345894127db4220b2b97275034e71bcbac37
* ada-lang.c: Update throughout to use symbol_matches_domain
instead of matching the symbol domain explictly.
* dwarf2read.c (add_partial_symbol): Do not add new psym for
STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
class as typedefs. See lookup_partial_symbol function.
(new_symbol): Similar to add_partial_symbol, do not create
symbol for the typedef. See lookup_block_symbol.
* symtab.c (symbol_matches_domain): New function, takes care
of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
(lookup_partial_symbol): Use symbol_matches_domain to see if the
found psym domain matches the given domain.
(lookup_block_symbol): Likewise.
gdb/ChangeLog
gdb/ada-lang.c
gdb/dwarf2read.c
gdb/symtab.c
gdb/symtab.h