aboutsummaryrefslogtreecommitdiff
path: root/gdb/blockframe.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-15 23:24:21 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-15 23:24:21 +0000
commitf407986f1a479bb0ef4a16c1059ce08e443e9788 (patch)
tree2a837ce93d8dd44a039d958976e50d071c003f55 /gdb/blockframe.c
parentb7b7461f8408b6e71021b5ae13bed0119268024c (diff)
downloadgdb-f407986f1a479bb0ef4a16c1059ce08e443e9788.zip
gdb-f407986f1a479bb0ef4a16c1059ce08e443e9788.tar.gz
gdb-f407986f1a479bb0ef4a16c1059ce08e443e9788.tar.bz2
2002-11-15 Andrew Cagney <cagney@redhat.com>
* frame.h (sigtramp_saved_pc): Delete declaration. * blockframe.c (sigtramp_saved_pc): Delete function. * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function. (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc. * vax-tdep.c (vax_sigtramp_saved_pc): New function. (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r--gdb/blockframe.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c
index 3e70b2a..9a519a4 100644
--- a/gdb/blockframe.c
+++ b/gdb/blockframe.c
@@ -660,35 +660,6 @@ find_frame_addr_in_frame_chain (CORE_ADDR frame_addr)
}
}
-#ifdef SIGCONTEXT_PC_OFFSET
-/* Get saved user PC for sigtramp from sigcontext for BSD style sigtramp. */
-
-CORE_ADDR
-sigtramp_saved_pc (struct frame_info *frame)
-{
- CORE_ADDR sigcontext_addr;
- char *buf;
- int ptrbytes = TYPE_LENGTH (builtin_type_void_func_ptr);
- int sigcontext_offs = (2 * TARGET_INT_BIT) / TARGET_CHAR_BIT;
-
- buf = alloca (ptrbytes);
- /* Get sigcontext address, it is the third parameter on the stack. */
- if (frame->next)
- sigcontext_addr = read_memory_typed_address
- (FRAME_ARGS_ADDRESS (frame->next) + FRAME_ARGS_SKIP + sigcontext_offs,
- builtin_type_void_data_ptr);
- else
- sigcontext_addr = read_memory_typed_address
- (read_register (SP_REGNUM) + sigcontext_offs, builtin_type_void_data_ptr);
-
- /* Don't cause a memory_error when accessing sigcontext in case the stack
- layout has changed or the stack is corrupt. */
- target_read_memory (sigcontext_addr + SIGCONTEXT_PC_OFFSET, buf, ptrbytes);
- return extract_typed_address (buf, builtin_type_void_func_ptr);
-}
-#endif /* SIGCONTEXT_PC_OFFSET */
-
-
/* 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. */