diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-31 06:57:18 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-15 11:02:23 -0700 |
commit | 6ef55de768d4ab9065bc92aa00d828212c4af4f0 (patch) | |
tree | a39f38b07450ea35006f60d0e8dcc0124c1bbe42 /gdb/objfiles.h | |
parent | 53eddfa6069cc556a22d388fbde0cc83beb91bfb (diff) | |
download | gdb-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.h')
-rw-r--r-- | gdb/objfiles.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 620d7e8..d448c9e 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -109,6 +109,9 @@ struct entry_info /* Set to 1 iff ENTRY_POINT contains a valid value. */ unsigned entry_point_p : 1; + + /* Set to 1 iff this object was initialized. */ + unsigned initialized : 1; }; /* Sections in an objfile. The section offsets are stored in the @@ -195,6 +198,11 @@ struct objfile_per_bfd_storage name, and the second is the demangled name or just a zero byte if the name doesn't demangle. */ struct htab *demangled_names_hash; + + /* The per-objfile information about the entry point, the scope (file/func) + containing the entry point, and the scope of the user's main() func. */ + + struct entry_info ei; }; /* Master structure for keeping track of each file from which @@ -318,11 +326,6 @@ struct objfile const struct sym_fns *sf; - /* The per-objfile information about the entry point, the scope (file/func) - containing the entry point, and the scope of the user's main() func. */ - - struct entry_info ei; - /* Per objfile data-pointers required by other GDB modules. */ REGISTRY_FIELDS; |