summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-01-26 04:21:39 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-01-26 04:21:39 +0000
commit4ddccbc58b822b0c35f0f46891a2d276d095ec2a (patch)
treec3706faadcf5f5c0fcc22a5ac3e56452b5fdbef9 /gdb/symfile.h
parent8eb4602788d1c0b3da11b9383492a7cdb5657f9d (diff)
downloadgdb-4ddccbc58b822b0c35f0f46891a2d276d095ec2a.tar.gz
Remove language param from name_matcher in struct quick_symbol_functions
The quick_symbol_functions struct contains a field which is pointer a function which takes another function, called name_matcher, as its parameter. This name_matcher currently has 3 arguments, one of them being the language. This parameter is no longer used, and thus deleted. gdb/ChangeLog: * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]: Remove language parameter from name_matcher. Adjust the comment. * symtab.c (search_symbols_name_matches, expand_partial_symbol_name): Remove language parameter. * ada-lang.c (ada_expand_partial_symbol_name): Likewise. * linespec.c (iterate_name_matcher): Likewise. * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of name_matcher. Adjust call accordingly. * psymtab.c (expand_symtabs_matching_via_partial): Likewise. (maintenance_check_symtabs): Adjust type of parameter "fun". * psymtab.h (maintenance_check_symtabs): Likewise.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 7af6094561a..d4f3fd90385 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -260,8 +260,8 @@ struct quick_symbol_functions
Otherwise, if KIND does not match this symbol is skipped.
If even KIND matches, then NAME_MATCHER is called for each symbol
- defined in the file. The current language, the symbol "search"
- name and DATA are passed to NAME_MATCHER.
+ defined in the file. The symbol "search" name and DATA are passed
+ to NAME_MATCHER.
If NAME_MATCHER returns zero, then this symbol is skipped.
@@ -272,7 +272,7 @@ struct quick_symbol_functions
void (*expand_symtabs_matching)
(struct objfile *objfile,
int (*file_matcher) (const char *, void *),
- int (*name_matcher) (const struct language_defn *, const char *, void *),
+ int (*name_matcher) (const char *, void *),
enum search_domain kind,
void *data);