diff options
Diffstat (limited to 'gdb/compile')
-rw-r--r-- | gdb/compile/compile-object-run.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/compile/compile-object-run.c b/gdb/compile/compile-object-run.c index 81453d0..8abe494 100644 --- a/gdb/compile/compile-object-run.c +++ b/gdb/compile/compile-object-run.c @@ -62,7 +62,6 @@ static void do_module_cleanup (void *arg, int registers_valid) { struct do_module_cleanup *data = (struct do_module_cleanup *) arg; - struct objfile *objfile; if (data->executedp != NULL) { @@ -83,7 +82,7 @@ do_module_cleanup (void *arg, int registers_valid) } } - ALL_OBJFILES (objfile) + for (objfile *objfile : all_objfiles (current_program_space)) if ((objfile->flags & OBJF_USERLOADED) == 0 && (strcmp (objfile_name (objfile), data->objfile_name_string) == 0)) { |