aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-frv.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-04-10 10:43:32 -0600
committerTom Tromey <tom@tromey.com>2023-05-07 12:44:17 -0600
commit5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec (patch)
tree36230d533899f8a7459c129e1691944d82209b99 /gdb/solib-frv.c
parent9ed8433a04bf0430e2da3cd44c18667859782410 (diff)
downloadfsf-binutils-gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.zip
fsf-binutils-gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.gz
fsf-binutils-gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.bz2
Remove ALL_OBJFILE_OSECTIONS
This replaces ALL_OBJFILE_OSECTIONS with an iterator so that for-each can be used.
Diffstat (limited to 'gdb/solib-frv.c')
-rw-r--r--gdb/solib-frv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index 7cce11d..8b0e3a6 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -727,7 +727,6 @@ frv_relocate_main_executable (void)
CORE_ADDR exec_addr, interp_addr;
struct int_elf32_fdpic_loadmap *ldm;
int changed;
- struct obj_section *osect;
status = frv_fdpic_loadmap_addresses (target_gdbarch (),
&interp_addr, &exec_addr);
@@ -751,7 +750,7 @@ frv_relocate_main_executable (void)
section_offsets new_offsets (objf->section_offsets.size ());
changed = 0;
- ALL_OBJFILE_OSECTIONS (objf, osect)
+ for (obj_section *osect : objf->sections ())
{
CORE_ADDR orig_addr, addr, offset;
int osect_idx;