diff options
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 24ecea3..14e7649 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -470,12 +470,11 @@ maintenance_print_symbols (const char *args, int from_tty) } else { - struct objfile *objfile; struct compunit_symtab *cu; struct symtab *s; int found = 0; - ALL_OBJFILES (objfile) + for (objfile *objfile : all_objfiles (current_program_space)) { int print_for_objfile = 1; @@ -690,7 +689,6 @@ maintenance_print_msymbols (const char *args, int from_tty) { struct ui_file *outfile = gdb_stdout; char *objfile_arg = NULL; - struct objfile *objfile; int i, outfile_idx; dont_repeat (); @@ -734,13 +732,13 @@ maintenance_print_msymbols (const char *args, int from_tty) outfile = &arg_outfile; } - ALL_OBJFILES (objfile) - { - QUIT; - if (objfile_arg == NULL - || compare_filenames_for_search (objfile_name (objfile), objfile_arg)) - dump_msymbols (objfile, outfile); - } + for (objfile *objfile : all_objfiles (current_program_space)) + { + QUIT; + if (objfile_arg == NULL + || compare_filenames_for_search (objfile_name (objfile), objfile_arg)) + dump_msymbols (objfile, outfile); + } } static void |