diff options
author | Pedro Alves <palves@redhat.com> | 2017-07-20 18:04:46 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-07-20 18:04:46 +0100 |
commit | 42edd901a220d9d963d2121d7014b81d43c1ac66 (patch) | |
tree | a82da7afe0d71a60890287dfe5d1200b94b488b3 /gdb/dictionary.c | |
parent | cf3252992378872212eeaaca090fe3b1491bcd3f (diff) | |
download | gdb-42edd901a220d9d963d2121d7014b81d43c1ac66.zip gdb-42edd901a220d9d963d2121d7014b81d43c1ac66.tar.gz gdb-42edd901a220d9d963d2121d7014b81d43c1ac66.tar.bz2 |
Eliminate block_iter_name_*
This patch gets rid of block_iter_name_* as being unnecessary. It's
the same as calling block_iter_match_*, and passing strcmp_iw as
comparison routine.
(A later patch will get rid of those new explicit strcmp_iw calls.)
gdb/ChangeLog:
2017-07-20 Pedro Alves <palves@redhat.com>
* block.c (block_iter_name_step, block_iter_name_first)
(block_iter_name_next): Delete.
(block_lookup_symbol_primary): Adjust to use
dict_iter_match_first/dict_iter_match_next.
* block.h (block_iter_name_first, block_iter_name_next): Delete
declarations.
(ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
dict_iter_match_first/dict_iter_match_next.
Diffstat (limited to 'gdb/dictionary.c')
-rw-r--r-- | gdb/dictionary.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/dictionary.c b/gdb/dictionary.c index e78db2e..b2cfca2 100644 --- a/gdb/dictionary.c +++ b/gdb/dictionary.c @@ -530,20 +530,6 @@ dict_iterator_next (struct dict_iterator *iterator) } struct symbol * -dict_iter_name_first (const struct dictionary *dict, - const char *name, - struct dict_iterator *iterator) -{ - return dict_iter_match_first (dict, name, strcmp_iw, iterator); -} - -struct symbol * -dict_iter_name_next (const char *name, struct dict_iterator *iterator) -{ - return dict_iter_match_next (name, strcmp_iw, iterator); -} - -struct symbol * dict_iter_match_first (const struct dictionary *dict, const char *name, symbol_compare_ftype *compare, struct dict_iterator *iterator) |