diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-04-26 07:05:35 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-04-26 07:05:35 +0000 |
commit | 5868c862e2d178996aa66bf3553a6f59d1516e2e (patch) | |
tree | 97e07909585ce1ef25f0d67967be24a860bc5f98 /gdb/alpha-linux-tdep.c | |
parent | fd55a5dffb1d01e996ee08190487983ff4d974aa (diff) | |
download | gdb-5868c862e2d178996aa66bf3553a6f59d1516e2e.zip gdb-5868c862e2d178996aa66bf3553a6f59d1516e2e.tar.gz gdb-5868c862e2d178996aa66bf3553a6f59d1516e2e.tar.bz2 |
* alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
* alpha-tdep.c (alpha_sigcontext_addr): New function.
(alpha_find_saved_regs): Use alpha_sigcontext_addr.
(alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
* alpha-linux-tdep.c: Include frame.h.
(alpha_linux_sigcontext_addr): New function.
(alpha_linux_init_abi): Set tdep->sigcontext_addr to
alpha_linux_sigcontext_addr.
* alpha-osf1-tdep.c: Include gdbcore.h.
(alpha_osf1_sigcontext_addr): New function.
(alpha_osf1_init_abi): Set tdep->sigcontext_addr to
alpha_osf1_sigcontext_addr.
* config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
* config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
Diffstat (limited to 'gdb/alpha-linux-tdep.c')
-rw-r--r-- | gdb/alpha-linux-tdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c index 05a9544..d467840 100644 --- a/gdb/alpha-linux-tdep.c +++ b/gdb/alpha-linux-tdep.c @@ -19,6 +19,7 @@ Boston, MA 02111-1307, USA. */ #include "defs.h" +#include "frame.h" #include "gdbcore.h" #include "value.h" @@ -91,6 +92,12 @@ alpha_linux_pc_in_sigtramp (CORE_ADDR pc, char *func_name) return (alpha_linux_sigtramp_offset (pc) >= 0); } +static CORE_ADDR +alpha_linux_sigcontext_addr (struct frame_info *frame) +{ + return (frame->frame - 0x298); /* sizeof(struct sigcontext) */ +} + static void alpha_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) @@ -100,6 +107,7 @@ alpha_linux_init_abi (struct gdbarch_info info, set_gdbarch_pc_in_sigtramp (gdbarch, alpha_linux_pc_in_sigtramp); tdep->dynamic_sigtramp_offset = alpha_linux_sigtramp_offset; + tdep->sigcontext_addr = alpha_linux_sigcontext_addr; tdep->jb_pc = 2; tdep->jb_elt_size = 8; |