diff options
Diffstat (limited to 'gdb/spu-tdep.c')
-rw-r--r-- | gdb/spu-tdep.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c index 0f6fb6d..33081fb 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -1883,11 +1883,10 @@ spu_overlay_update (struct obj_section *osect) /* All sections. */ else { - struct objfile *objfile; - - ALL_OBJSECTIONS (objfile, osect) - if (section_is_overlay (osect)) - spu_overlay_update_osect (osect); + for (objfile *objfile : all_objfiles (current_program_space)) + ALL_OBJFILE_OSECTIONS (objfile, osect) + if (section_is_overlay (osect)) + spu_overlay_update_osect (osect); } } |