aboutsummaryrefslogtreecommitdiff
path: root/gdb/dictionary.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-07-20 18:04:46 +0100
committerPedro Alves <palves@redhat.com>2017-07-20 18:04:46 +0100
commit42edd901a220d9d963d2121d7014b81d43c1ac66 (patch)
treea82da7afe0d71a60890287dfe5d1200b94b488b3 /gdb/dictionary.c
parentcf3252992378872212eeaaca090fe3b1491bcd3f (diff)
downloadgdb-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.c14
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)