aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-aix.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-aix.c
parent9ed8433a04bf0430e2da3cd44c18667859782410 (diff)
downloadgdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.zip
gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.gz
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-aix.c')
-rw-r--r--gdb/solib-aix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index d3119db..93aa6c4 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -662,9 +662,7 @@ solib_aix_bfd_open (const char *pathname)
static struct obj_section *
data_obj_section_from_objfile (struct objfile *objfile)
{
- struct obj_section *osect;
-
- ALL_OBJFILE_OSECTIONS (objfile, osect)
+ for (obj_section *osect : objfile->sections ())
if (strcmp (bfd_section_name (osect->the_bfd_section), ".data") == 0)
return osect;