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/tracepoint.c | |
parent | a1b294260f4e43cfb7edb2a917accb82945ed310 (diff) | |
download | fsf-binutils-gdb-548a89df2315322d51a6f961d46699663082b626.zip fsf-binutils-gdb-548a89df2315322d51a6f961d46699663082b626.tar.gz fsf-binutils-gdb-548a89df2315322d51a6f961d46699663082b626.tar.bz2 |
Remove ALL_BLOCK_SYMBOLS
This removes ALL_BLOCK_SYMBOLS in favor of foreach.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 1c1fea7..c8bac7a 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2459,12 +2459,10 @@ tfind_outside_command (const char *args, int from_tty) static void info_scope_command (const char *args_in, int from_tty) { - struct symbol *sym; struct bound_minimal_symbol msym; const struct block *block; const char *symname; const char *save_args = args_in; - struct block_iterator iter; int j, count = 0; struct gdbarch *gdbarch; int regno; @@ -2492,7 +2490,7 @@ info_scope_command (const char *args_in, int from_tty) while (block != 0) { QUIT; /* Allow user to bail out with ^C. */ - ALL_BLOCK_SYMBOLS (block, iter, sym) + for (struct symbol *sym : block_iterator_range (block)) { QUIT; /* Allow user to bail out with ^C. */ if (count == 0) |