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/mi/mi-cmd-stack.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/mi/mi-cmd-stack.c')
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 1554f95..4c4662a 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -568,8 +568,6 @@ list_args_or_locals (const frame_print_options &fp_opts, frame_info_ptr fi, int skip_unavailable) { const struct block *block; - struct symbol *sym; - struct block_iterator iter; const char *name_of_result; struct ui_out *uiout = current_uiout; @@ -594,7 +592,7 @@ list_args_or_locals (const frame_print_options &fp_opts, while (block != 0) { - ALL_BLOCK_SYMBOLS (block, iter, sym) + for (struct symbol *sym : block_iterator_range (block)) { int print_me = 0; |