aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-31 06:57:18 -0700
committerTom Tromey <tromey@redhat.com>2014-01-15 11:02:23 -0700
commit6ef55de768d4ab9065bc92aa00d828212c4af4f0 (patch)
treea39f38b07450ea35006f60d0e8dcc0124c1bbe42 /gdb/objfiles.c
parent53eddfa6069cc556a22d388fbde0cc83beb91bfb (diff)
downloadgdb-6ef55de768d4ab9065bc92aa00d828212c4af4f0.zip
gdb-6ef55de768d4ab9065bc92aa00d828212c4af4f0.tar.gz
gdb-6ef55de768d4ab9065bc92aa00d828212c4af4f0.tar.bz2
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 <tromey@redhat.com> * symfile.c (init_entry_point_info): Use new "initialized" field. Update. * objfiles.h (struct entry_point) <initialized>: New field. (struct objfile_per_bfd_storage) <ei>: New field, moved from... (struct objfile) <ei>: ...here. Remove. * objfiles.c (entry_point_address_query): Update.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c6
1 files changed, 3 insertions, 3 deletions
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;
}