aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-08-02 18:58:20 +0000
committerAndrew Cagney <cagney@redhat.com>2004-08-02 18:58:20 +0000
commit474093a64e7274935acd9130ab7cc1a528a61a02 (patch)
treeec733266dfe3a2e2b029d69710f8747e43d30e90 /gdb
parent3c109c8b9c01529aceea6518020ac3c3730b59e1 (diff)
downloadgdb-474093a64e7274935acd9130ab7cc1a528a61a02.zip
gdb-474093a64e7274935acd9130ab7cc1a528a61a02.tar.gz
gdb-474093a64e7274935acd9130ab7cc1a528a61a02.tar.bz2
2004-08-02 Andrew Cagney <cagney@gnu.org>
* blockframe.c (legacy_frame_chain_valid): Delete function.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/blockframe.c37
2 files changed, 2 insertions, 37 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 59f6d3c..e2caf80 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
2004-08-02 Andrew Cagney <cagney@gnu.org>
+ * blockframe.c (legacy_frame_chain_valid): Delete function.
+
* dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
and pc. Update comments.
(pc_in_dummy_frame): Delete function.
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index eb03225..7b48194 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -492,40 +492,3 @@ block_innermost_frame (struct block *block)
return frame;
}
}
-
-/* Are we in a call dummy? The code below which allows DECR_PC_AFTER_BREAK
- below is for infrun.c, which may give the macro a pc without that
- subtracted out. */
-
-/* Returns true for a user frame or a call_function_by_hand dummy
- frame, and false for the CRT0 start-up frame. Purpose is to
- terminate backtrace. */
-
-int
-legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
-{
- /* Don't prune CALL_DUMMY frames. */
- if (deprecated_pc_in_call_dummy (get_frame_pc (fi)))
- return 1;
-
- /* If the new frame pointer is zero, then it isn't valid. */
- if (fp == 0)
- return 0;
-
- /* If the new frame would be inside (younger than) the previous frame,
- then it isn't valid. */
- if (INNER_THAN (fp, get_frame_base (fi)))
- return 0;
-
- /* If the architecture has a custom DEPRECATED_FRAME_CHAIN_VALID,
- call it now. */
- 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 (inside_entry_func (fi))
- return 0;
-
- return 1;
-}