diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-11 00:41:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-11 00:41:56 +0000 |
commit | 18a9e736bbce9d8f64c9c33c5eaa8f55d958418c (patch) | |
tree | 41d7f06a5f7a5395f518c2dbe5fd47f73d1bb393 | |
parent | e0d4348c967413c852892c428a3e153ca015cbdb (diff) | |
download | gdb-18a9e736bbce9d8f64c9c33c5eaa8f55d958418c.tar.gz |
2004-06-10 Andrew Cagney <cagney@gnu.org>
* blockframe.c (legacy_inside_entry_func): Delete.
(legacy_frame_chain_valid): Inline call to
legacy_inside_entry_func, simplify.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/blockframe.c | 28 |
2 files changed, 11 insertions, 23 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 72b611b03da..ef8bf1622e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-06-10 Andrew Cagney <cagney@gnu.org> + + * blockframe.c (legacy_inside_entry_func): Delete. + (legacy_frame_chain_valid): Inline call to + legacy_inside_entry_func, simplify. + 2004-06-10 Bob Rossi <bob@brasko.net> * dbxread.c (read_dbx_symtab): Set pst->dirname when known. diff --git a/gdb/blockframe.c b/gdb/blockframe.c index cbe367485bb..b03395c678b 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -135,26 +135,6 @@ inside_entry_func (struct frame_info *this_frame) return (get_frame_func (this_frame) == entry_point_address ()); } -/* Similar to inside_entry_func, but accomodating legacy frame code. */ - -static int -legacy_inside_entry_func (CORE_ADDR pc) -{ - if (symfile_objfile == 0) - return 0; - - if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT) - { - /* Do not stop backtracing if the program counter is in the call - dummy at the entry point. */ - if (deprecated_pc_in_call_dummy (pc)) - return 0; - } - - return (symfile_objfile->ei.entry_func_lowpc <= pc - && symfile_objfile->ei.entry_func_highpc > pc); -} - /* Return nonzero if the function for this frame lacks a prologue. Many machines can define DEPRECATED_FRAMELESS_FUNCTION_INVOCATION to just call this function. */ @@ -542,9 +522,11 @@ legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi) if (DEPRECATED_FRAME_CHAIN_VALID_P ()) return DEPRECATED_FRAME_CHAIN_VALID (fp, fi); - /* If we're already inside the entry function for the main objfile, then it - isn't valid. */ - if (legacy_inside_entry_func (get_frame_pc (fi))) + /* If we're already inside the entry function for the main objfile, + then it isn't valid. */ + if (symfile_objfile != NULL + && (symfile_objfile->ei.entry_func_lowpc <= get_frame_pc (fi) + && symfile_objfile->ei.entry_func_highpc > get_frame_pc (fi))) return 0; return 1; |