diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-02 14:50:29 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-02 14:50:29 +0000 |
commit | abd0a5fa917322975ca664878f29de21fa878e21 (patch) | |
tree | 6d589ca1a511d6f8633d523498418394425e4d45 /gdb/objfiles.h | |
parent | 62f3b8c86784407e864ddf7698b9852cb76aa339 (diff) | |
download | gdb-abd0a5fa917322975ca664878f29de21fa878e21.zip gdb-abd0a5fa917322975ca664878f29de21fa878e21.tar.gz gdb-abd0a5fa917322975ca664878f29de21fa878e21.tar.bz2 |
gdb/
Remove INVALID_ENTRY_POINT.
* frame.c (inside_entry_func): New variable entry_point. Return 0 if
the entry point is not known.
* solib-irix.c (enable_break): Likewise.
* objfiles.c (init_entry_point_info): Stop using INVALID_ENTRY_POINT.
Initialize EI.ENTRY_POINT_P.
(entry_point_address): Rename to ...
(entry_point_address_query): ... a new function. Use EI.ENTRY_POINT_P.
(entry_point_address): New function.
(objfile_relocate): Use EI.ENTRY_POINT_P.
* objfiles.h (struct entry_info): Simplify entry_point comment. New
field entry_point_p.
(INVALID_ENTRY_POINT): Remove.
(entry_point_address_query): New prototype.
* solib-frv.c (enable_break): Check for NULL SYMFILE_OBJFILE and its
EI.ENTRY_POINT_P. Return 0 if ".interp" is not found.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index b78e158..97e6b55 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -100,15 +100,11 @@ struct objfile_data; struct entry_info { - - /* The value we should use for this objects entry point. - The illegal/unknown value needs to be something other than 0, ~0 - for instance, which is much less likely than 0. */ - + /* The relocated value we should use for this objfile entry point. */ CORE_ADDR entry_point; -#define INVALID_ENTRY_POINT (~0) /* ~0 will not be in any file, we hope. */ - + /* Set to 1 iff ENTRY_POINT contains a valid value. */ + unsigned entry_point_p : 1; }; /* Sections in an objfile. The section offsets are stored in the @@ -447,6 +443,8 @@ extern struct gdbarch *get_objfile_arch (struct objfile *); extern void init_entry_point_info (struct objfile *); +extern int entry_point_address_query (CORE_ADDR *entry_p); + extern CORE_ADDR entry_point_address (void); extern int build_objfile_section_table (struct objfile *); |