diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-02-08 19:54:37 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-02-08 19:54:37 +0000 |
commit | 1a119f3613c3094c82b127b735b9c69648a37387 (patch) | |
tree | 3deed814f0c862ba4f677195a5a6f6e74dc27477 /gdb/ada-lang.c | |
parent | 97298d2971cc5c8cbe90566171777c660b74642b (diff) | |
download | gdb-1a119f3613c3094c82b127b735b9c69648a37387.zip gdb-1a119f3613c3094c82b127b735b9c69648a37387.tar.gz gdb-1a119f3613c3094c82b127b735b9c69648a37387.tar.bz2 |
Rename la_get_symbol_name_match_p into la_get_symbol_name_cmp
The la_get_symbol_name_match_p language hook was poorly named, as
it suggested that the function should return nonzero if the names
match, whereas it is the exact opposite. This patch therefore
renames the hook and associated typedef, as well some of the code
that uses that hook.
gdb/ChangeLog:
* language.h (symbol_name_cmp_ftype): Renames
symbol_name_match_p_ftype.
(struct language_defn)[la_get_symbol_name_cmp]: Renames
la_get_symbol_name_match_p.
* ada-lang.c (ada_get_symbol_name_cmp): Renames
ada_get_symbol_name_match_p. Update comment.
(ada_language_defn)[la_get_symbol_name_cmp]: Update value.
* linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
Renames symbol_name_match_p. Update field type.
(iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
* c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
"la_get_symbol_name_cmp" in comments.
* language.c: Likewise.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 49178cf..107df93 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -12322,11 +12322,11 @@ static const struct exp_descriptor ada_exp_descriptor = { ada_evaluate_subexp }; -/* Implement the "la_get_symbol_name_match_p" language_defn method +/* Implement the "la_get_symbol_name_cmp" language_defn method for Ada. */ -static symbol_name_match_p_ftype -ada_get_symbol_name_match_p (const char *lookup_name) +static symbol_name_cmp_ftype +ada_get_symbol_name_cmp (const char *lookup_name) { if (should_use_wild_match (lookup_name)) return wild_match; @@ -12370,7 +12370,7 @@ const struct language_defn ada_language_defn = { ada_print_array_index, default_pass_by_reference, c_get_string, - ada_get_symbol_name_match_p, /* la_get_symbol_name_match_p */ + ada_get_symbol_name_cmp, /* la_get_symbol_name_cmp */ ada_iterate_over_symbols, LANG_MAGIC }; |