diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-02 14:50:26 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-11-02 14:50:26 +0000 |
commit | 8fac53967c6574e472a6d911a0bc0826b524512f (patch) | |
tree | 111ec4c20f5fc7f86e116612002e26c5fca96478 /gdb/solib-irix.c | |
parent | 1f84894efaa1f703f85c704b02b15ea540983c09 (diff) | |
download | gdb-8fac53967c6574e472a6d911a0bc0826b524512f.tar.gz |
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/solib-irix.c')
-rw-r--r-- | gdb/solib-irix.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c index 13a3e3d40f2..219e7d936d9 100644 --- a/gdb/solib-irix.c +++ b/gdb/solib-irix.c @@ -369,11 +369,13 @@ enable_break (void) { struct frame_info *frame = get_current_frame (); struct address_space *aspace = get_frame_address_space (frame); + CORE_ADDR entry_point; - base_breakpoint - = deprecated_insert_raw_breakpoint (target_gdbarch, - aspace, - entry_point_address ()); + if (!entry_point_address_query (&entry_point)) + return 0; + + base_breakpoint = deprecated_insert_raw_breakpoint (target_gdbarch, + aspace, entry_point); if (base_breakpoint != NULL) return 1; |