From 5929a91098661a96a8fd889af00aebe461fc831a Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 15 Feb 2004 22:05:44 +0000 Subject: 2004-02-15 Andrew Cagney * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro. * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro. * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro. * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro. * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference. * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro. * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference. --- gdb/ns32k-tdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/ns32k-tdep.c') diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index dc143bb..ecd3864 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -331,9 +331,10 @@ ns32k_sigtramp_saved_pc (struct frame_info *frame) 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 + /* Offset to saved PC in sigcontext, from . 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); + target_read_memory (sigcontext_addr + 20, buf, ptrbytes); return extract_typed_address (buf, builtin_type_void_func_ptr); } -- cgit v1.1