From 6ef55de768d4ab9065bc92aa00d828212c4af4f0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 31 Dec 2013 06:57:18 -0700 Subject: move the entry point info into the per-bfd object This moves the entry point information into the per-BFD object and arranges not to recompute it when it has already been computed. 2014-01-15 Tom Tromey * symfile.c (init_entry_point_info): Use new "initialized" field. Update. * objfiles.h (struct entry_point) : New field. (struct objfile_per_bfd_storage) : New field, moved from... (struct objfile) : ...here. Remove. * objfiles.c (entry_point_address_query): Update. --- gdb/objfiles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/objfiles.c') diff --git a/gdb/objfiles.c b/gdb/objfiles.c index a80d4c7..c3f6e18 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -364,12 +364,12 @@ get_objfile_arch (struct objfile *objfile) int entry_point_address_query (CORE_ADDR *entry_p) { - if (symfile_objfile == NULL || !symfile_objfile->ei.entry_point_p) + if (symfile_objfile == NULL || !symfile_objfile->per_bfd->ei.entry_point_p) return 0; - *entry_p = (symfile_objfile->ei.entry_point + *entry_p = (symfile_objfile->per_bfd->ei.entry_point + ANOFFSET (symfile_objfile->section_offsets, - symfile_objfile->ei.the_bfd_section_index)); + symfile_objfile->per_bfd->ei.the_bfd_section_index)); return 1; } -- cgit v1.1