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.h | |
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.h')
-rw-r--r-- | gdb/dictionary.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gdb/dictionary.h b/gdb/dictionary.h index 124fc98..4f4f160 100644 --- a/gdb/dictionary.h +++ b/gdb/dictionary.h @@ -123,25 +123,6 @@ extern struct symbol *dict_iterator_first (const struct dictionary *dict, extern struct symbol *dict_iterator_next (struct dict_iterator *iterator); /* Initialize ITERATOR to point at the first symbol in DICT whose - SYMBOL_SEARCH_NAME is NAME (as tested using strcmp_iw), and return - that first symbol, or NULL if there are no such symbols. */ - -extern struct symbol *dict_iter_name_first (const struct dictionary *dict, - const char *name, - struct dict_iterator *iterator); - -/* Advance ITERATOR to point at the next symbol in DICT whose - SYMBOL_SEARCH_NAME is NAME (as tested using strcmp_iw), or NULL if - there are no more such symbols. Don't call this if you've - previously received NULL from dict_iterator_first or - dict_iterator_next on this iteration. And don't call it unless - ITERATOR was created by a previous call to dict_iter_name_first - with the same NAME. */ - -extern struct symbol *dict_iter_name_next (const char *name, - struct dict_iterator *iterator); - -/* Initialize ITERATOR to point at the first symbol in DICT whose SYMBOL_SEARCH_NAME is NAME, as tested using COMPARE (which must use the same conventions as strcmp_iw and be compatible with any dictionary hashing function), and return that first symbol, or NULL |