aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.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/symfile.c
parent372b4a048a2719c746bbb70bdbed257df405a4dc (diff)
downloadbinutils-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/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d0cb5cb..d1ab3cc 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2571,7 +2571,7 @@ reread_symbols (int from_tty)
/* NB: after this call to obstack_free, objfiles_changed
will need to be called (see discussion below). */
obstack_free (&objfile->objfile_obstack, 0);
- objfile->sections = NULL;
+ objfile->sections_start = NULL;
objfile->section_offsets.clear ();
objfile->sect_index_bss = -1;
objfile->sect_index_data = -1;