move the entry point info into the per-bfd object
authorTom Tromey <tromey@redhat.com>
Tue, 31 Dec 2013 13:57:18 +0000 (06:57 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 15 Jan 2014 18:02:23 +0000 (11:02 -0700)
commit6ef55de768d4ab9065bc92aa00d828212c4af4f0
treea39f38b07450ea35006f60d0e8dcc0124c1bbe42
parent53eddfa6069cc556a22d388fbde0cc83beb91bfb
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.
gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h
gdb/symfile.c