aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2008-05-05 14:37:32 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2008-05-05 14:37:32 +0000
commit5eeb2539423ce5e7241bce403f48b8babb3670b0 (patch)
treecc6f859e82b96a7c8554b3ca90847ca96b571fe9 /gdb/symtab.h
parente8db345894127db4220b2b97275034e71bcbac37 (diff)
downloadgdb-5eeb2539423ce5e7241bce403f48b8babb3670b0.zip
gdb-5eeb2539423ce5e7241bce403f48b8babb3670b0.tar.gz
gdb-5eeb2539423ce5e7241bce403f48b8babb3670b0.tar.bz2
* 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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index cfdd2a4..ef8cade 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -998,6 +998,10 @@ extern const char multiple_symbols_cancel[];
const char *multiple_symbols_select_mode (void);
+int symbol_matches_domain (enum language symbol_language,
+ domain_enum symbol_domain,
+ domain_enum domain);
+
/* lookup a symbol table by source file name */
extern struct symtab *lookup_symtab (const char *);