aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-06 22:50:12 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-06 22:50:12 -0800
commit358d6ab39c95691e721820fd54e9780208faf252 (patch)
tree202ffc1baa8eefa831df7e716f707ad08697722c /gdb/symtab.c
parent16b2eaa164b48aa0529304eec38102f1c60578be (diff)
downloadgdb-358d6ab39c95691e721820fd54e9780208faf252.zip
gdb-358d6ab39c95691e721820fd54e9780208faf252.tar.gz
gdb-358d6ab39c95691e721820fd54e9780208faf252.tar.bz2
New macro ALL_BLOCK_SYMBOLS_WITH_NAME.
gdb/ChangeLog: * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro. * block.c (block_lookup_symbol): Use it. * cp-support.c (make_symbol_overload_list_block): Use it. * symtab.c (iterate_over_symbols): Use it.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 482a23d..9add71f 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2031,9 +2031,7 @@ iterate_over_symbols (const struct block *block, const char *name,
struct block_iterator iter;
struct symbol *sym;
- for (sym = block_iter_name_first (block, name, &iter);
- sym != NULL;
- sym = block_iter_name_next (name, &iter))
+ ALL_BLOCK_SYMBOLS_WITH_NAME (block, name, iter, sym)
{
if (symbol_matches_domain (SYMBOL_LANGUAGE (sym),
SYMBOL_DOMAIN (sym), domain))