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/frame.c | |
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/frame.c')
-rw-r--r-- | gdb/frame.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 02a9bd1..cd28fa4 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1650,7 +1650,12 @@ inside_main_func (struct frame_info *this_frame) static int inside_entry_func (struct frame_info *this_frame) { - return (get_frame_func (this_frame) == entry_point_address ()); + CORE_ADDR entry_point; + + if (!entry_point_address_query (&entry_point)) + return 0; + + return get_frame_func (this_frame) == entry_point; } /* Return a structure containing various interesting information about |