aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-04-10 10:50:09 -0600
committerTom Tromey <tom@tromey.com>2023-05-07 12:44:17 -0600
commit9ed8433a04bf0430e2da3cd44c18667859782410 (patch)
tree035e5240911b21168ddd485946571aa7cd51a5d5 /gdb/xcoffread.c
parent372b4a048a2719c746bbb70bdbed257df405a4dc (diff)
downloadgdb-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/xcoffread.c')
-rw-r--r--gdb/xcoffread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index e5b8e8a..a660e1c 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2890,7 +2890,8 @@ xcoff_symfile_offsets (struct objfile *objfile,
if (objfile->section_offsets.empty ())
return; /* Is that even possible? Better safe than sorry. */
- first_section_name = bfd_section_name (objfile->sections[0].the_bfd_section);
+ first_section_name
+ = bfd_section_name (objfile->sections_start[0].the_bfd_section);
if (objfile->sect_index_text == 0
&& strcmp (first_section_name, ".text") != 0)