diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 22:50:12 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 22:50:12 -0800 |
commit | 358d6ab39c95691e721820fd54e9780208faf252 (patch) | |
tree | 202ffc1baa8eefa831df7e716f707ad08697722c /gdb/cp-support.c | |
parent | 16b2eaa164b48aa0529304eec38102f1c60578be (diff) | |
download | binutils-358d6ab39c95691e721820fd54e9780208faf252.zip binutils-358d6ab39c95691e721820fd54e9780208faf252.tar.gz binutils-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/cp-support.c')
-rw-r--r-- | gdb/cp-support.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c index d35920c..72ffb52 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -1218,9 +1218,7 @@ make_symbol_overload_list_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) overload_list_add_symbol (sym, name); } |