diff options
author | Tom Tromey <tom@tromey.com> | 2023-04-10 10:50:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-07 12:44:17 -0600 |
commit | 9ed8433a04bf0430e2da3cd44c18667859782410 (patch) | |
tree | 035e5240911b21168ddd485946571aa7cd51a5d5 /gdb/maint.c | |
parent | 372b4a048a2719c746bbb70bdbed257df405a4dc (diff) | |
download | gdb-9ed8433a04bf0430e2da3cd44c18667859782410.zip gdb-9ed8433a04bf0430e2da3cd44c18667859782410.tar.gz gdb-9ed8433a04bf0430e2da3cd44c18667859782410.tar.bz2 |
Rename objfile::sections
I think objfile::sections makes sense as the name of the method to
iterate over an objfile's sections, so this patch renames the existing
field to objfile::sections_start in preparation for that.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r-- | gdb/maint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index a8afef0..3cd2c5e 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -331,11 +331,11 @@ maint_obj_section_from_bfd_section (bfd *abfd, asection *asection, objfile *ofile) { - if (ofile->sections == nullptr) + if (ofile->sections_start == nullptr) return nullptr; obj_section *osect - = &ofile->sections[gdb_bfd_section_index (abfd, asection)]; + = &ofile->sections_start[gdb_bfd_section_index (abfd, asection)]; if (osect >= ofile->sections_end) return nullptr; @@ -375,7 +375,7 @@ maint_print_all_sections (const char *header, bfd *abfd, objfile *objfile, if (objfile != nullptr) { - gdb_assert (objfile->sections != nullptr); + gdb_assert (objfile->sections_start != nullptr); osect = maint_obj_section_from_bfd_section (abfd, sect, objfile); if (osect->the_bfd_section == nullptr) |