diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-15 22:05:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-15 22:05:44 +0000 |
commit | 5e0db6bb1fe19debd52acb0141532af125b4e11e (patch) | |
tree | 3e0fd9e265241dff59e8de456296ad8d74c726d7 /gdb/vax-tdep.c | |
parent | e00c702384a7cda142870f6621cffc6f77a0aa13 (diff) | |
download | gdb-5e0db6bb1fe19debd52acb0141532af125b4e11e.tar.gz |
2004-02-15 Andrew Cagney <cagney@redhat.com>
* 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.
Diffstat (limited to 'gdb/vax-tdep.c')
-rw-r--r-- | gdb/vax-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index 169b5328688..809330eba09 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -141,9 +141,10 @@ vax_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 <sys/signal.h>. 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 + 12, buf, ptrbytes); return extract_typed_address (buf, builtin_type_void_func_ptr); } |