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/infrun.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/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 75725f5..3629db0 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -8123,8 +8123,6 @@ check_exception_resume (struct execution_control_state *ecs, try { const struct block *b; - struct block_iterator iter; - struct symbol *sym; int argno = 0; /* The exception breakpoint is a thread-specific breakpoint on @@ -8142,7 +8140,7 @@ check_exception_resume (struct execution_control_state *ecs, handler. */ b = func->value_block (); - ALL_BLOCK_SYMBOLS (b, iter, sym) + for (struct symbol *sym : block_iterator_range (b)) { if (!sym->is_argument ()) continue; |