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/symtab.c | |
parent | 372b4a048a2719c746bbb70bdbed257df405a4dc (diff) | |
download | binutils-9ed8433a04bf0430e2da3cd44c18667859782410.zip binutils-9ed8433a04bf0430e2da3cd44c18667859782410.tar.gz binutils-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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 27611a3..594b13f 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1099,7 +1099,7 @@ struct obj_section * general_symbol_info::obj_section (const struct objfile *objfile) const { if (section_index () >= 0) - return &objfile->sections[section_index ()]; + return &objfile->sections_start[section_index ()]; return nullptr; } @@ -1777,7 +1777,7 @@ fixup_symbol_section (struct symbol *sym, struct objfile *objfile) if ((bfd_section_flags (s->the_bfd_section) & SEC_ALLOC) == 0) continue; - int idx = s - objfile->sections; + int idx = s - objfile->sections_start; CORE_ADDR offset = objfile->section_offsets[idx]; if (fallback == -1) |