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 | 5929a91098661a96a8fd889af00aebe461fc831a (patch) | |
tree | cc04ae304eca980d048213e2e3ee389d3b8d0f9b /gdb/ns32k-tdep.c | |
parent | 8f22cb9068670ce9c634e55028877721e7863e63 (diff) | |
download | fsf-binutils-gdb-5929a91098661a96a8fd889af00aebe461fc831a.zip fsf-binutils-gdb-5929a91098661a96a8fd889af00aebe461fc831a.tar.gz fsf-binutils-gdb-5929a91098661a96a8fd889af00aebe461fc831a.tar.bz2 |
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/ns32k-tdep.c')
-rw-r--r-- | gdb/ns32k-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <machine/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 + 20, buf, ptrbytes); return extract_typed_address (buf, builtin_type_void_func_ptr); } |