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/f-valprint.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/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index e968929..52bebae 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -618,13 +618,11 @@ static void info_common_command_for_block (const struct block *block, const char *comname, int *any_printed) { - struct block_iterator iter; - struct symbol *sym; struct value_print_options opts; get_user_print_options (&opts); - ALL_BLOCK_SYMBOLS (block, iter, sym) + for (struct symbol *sym : block_iterator_range (block)) if (sym->domain () == COMMON_BLOCK_DOMAIN) { const struct common_block *common = sym->value_common_block (); |