aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-08 18:37:17 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-08 18:37:17 +0000
commit0c93b7b6427188fbe8f934d03c12797185ff7c04 (patch)
treecb3fd9fdca6d7a18aca69e949e1d4e2ddac15046 /gdb/blockframe.c
parent527ca6bb9e9a4c496c5bfd211ddaeffcbbc4827b (diff)
downloadgdb-0c93b7b6427188fbe8f934d03c12797185ff7c04.zip
gdb-0c93b7b6427188fbe8f934d03c12797185ff7c04.tar.gz
gdb-0c93b7b6427188fbe8f934d03c12797185ff7c04.tar.bz2
2004-05-08 Andrew Cagney <cagney@redhat.com>
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated pc_in_call_dummy. * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete. * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 6e9cf58..a4c209a 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -519,33 +519,6 @@ block_innermost_frame (struct block *block)
below is for infrun.c, which may give the macro a pc without that
subtracted out. */
-/* Is the PC in a call dummy? SP and FRAME_ADDRESS are the bottom and
- top of the stack frame which we are checking, where "bottom" and
- "top" refer to some section of memory which contains the code for
- the call dummy. Calls to this macro assume that the contents of
- SP_REGNUM and DEPRECATED_FP_REGNUM (or the saved values thereof),
- respectively, are the things to pass.
-
- This won't work on the 29k, where SP_REGNUM and
- DEPRECATED_FP_REGNUM don't have that meaning, but the 29k doesn't
- use ON_STACK. This could be fixed by generalizing this scheme,
- perhaps by passing in a frame and adding a few fields, at least on
- machines which need them for DEPRECATED_PC_IN_CALL_DUMMY.
-
- Something simpler, like checking for the stack segment, doesn't work,
- since various programs (threads implementations, gcc nested function
- stubs, etc) may either allocate stack frames in another segment, or
- allocate other kinds of code on the stack. */
-
-int
-deprecated_pc_in_call_dummy_on_stack (CORE_ADDR pc, CORE_ADDR sp,
- CORE_ADDR frame_address)
-{
- return (INNER_THAN ((sp), (pc))
- && (frame_address != 0)
- && INNER_THAN ((pc), (frame_address)));
-}
-
/* 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. */