aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-19 20:21:10 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:06 -0700
commita1b294260f4e43cfb7edb2a917accb82945ed310 (patch)
treee350a15d6bdf7e464df06cb8cbba357dec884458 /gdb/block.h
parent1c49bb455c2b401b508b3f3d5924ba461e153ad4 (diff)
downloadbinutils-a1b294260f4e43cfb7edb2a917accb82945ed310.zip
binutils-a1b294260f4e43cfb7edb2a917accb82945ed310.tar.gz
binutils-a1b294260f4e43cfb7edb2a917accb82945ed310.tar.bz2
Remove ALL_BLOCK_SYMBOLS_WITH_NAME
This removes ALL_BLOCK_SYMBOLS_WITH_NAME in favor of foreach.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/block.h b/gdb/block.h
index 7341d03..35c4137 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -604,16 +604,6 @@ extern int block_find_non_opaque_type_preferred (struct symbol *sym,
(sym); \
(sym) = block_iterator_next (&(iter)))
-/* Macro to loop through all symbols in BLOCK with a name that matches
- NAME, in no particular order. ITER helps keep track of the
- iteration, and must be a struct block_iterator. SYM points to the
- current symbol. */
-
-#define ALL_BLOCK_SYMBOLS_WITH_NAME(block, name, iter, sym) \
- for ((sym) = block_iterator_first ((block), &(iter), &(name)); \
- (sym) != NULL; \
- (sym) = block_iterator_next (&(iter)))
-
/* Given a vector of pairs, allocate and build an obstack allocated
blockranges struct for a block. */
struct blockranges *make_blockranges (struct objfile *objfile,