diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-19 20:25:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | 548a89df2315322d51a6f961d46699663082b626 (patch) | |
tree | 94e04fda61f37c1610cefff911e968510eadef8b /gdb/linespec.c | |
parent | a1b294260f4e43cfb7edb2a917accb82945ed310 (diff) | |
download | gdb-548a89df2315322d51a6f961d46699663082b626.zip gdb-548a89df2315322d51a6f961d46699663082b626.tar.gz gdb-548a89df2315322d51a6f961d46699663082b626.tar.bz2 |
Remove ALL_BLOCK_SYMBOLS
This removes ALL_BLOCK_SYMBOLS in favor of foreach.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c index 7edfee2..36f2ef4 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -3900,14 +3900,12 @@ find_label_symbols_in_block (const struct block *block, { if (completion_mode) { - struct block_iterator iter; - struct symbol *sym; size_t name_len = strlen (name); int (*cmp) (const char *, const char *, size_t); cmp = case_sensitivity == case_sensitive_on ? strncmp : strncasecmp; - ALL_BLOCK_SYMBOLS (block, iter, sym) + for (struct symbol *sym : block_iterator_range (block)) { if (symbol_matches_domain (sym->language (), sym->domain (), LABEL_DOMAIN) |