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-osf1-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-osf1-tdep.c')
-rw-r--r-- | gdb/alpha-osf1-tdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/alpha-osf1-tdep.c b/gdb/alpha-osf1-tdep.c index be8f704..67c56cf 100644 --- a/gdb/alpha-osf1-tdep.c +++ b/gdb/alpha-osf1-tdep.c @@ -20,6 +20,7 @@ #include "defs.h" #include "frame.h" +#include "gdbcore.h" #include "value.h" #include "alpha-tdep.h" @@ -43,6 +44,13 @@ alpha_osf1_pc_in_sigtramp (CORE_ADDR pc, char *func_name) return (func_name != NULL && STREQ ("__sigtramp", func_name)); } +static CORE_ADDR +alpha_osf1_sigcontext_addr (struct frame_info *frame) +{ + return (read_memory_integer (frame->next ? frame->next->frame + : frame->frame, 8)); +} + static void alpha_osf1_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) @@ -52,6 +60,7 @@ alpha_osf1_init_abi (struct gdbarch_info info, set_gdbarch_pc_in_sigtramp (gdbarch, alpha_osf1_pc_in_sigtramp); tdep->skip_sigtramp_frame = alpha_osf1_skip_sigtramp_frame; + tdep->sigcontext_addr = alpha_osf1_sigcontext_addr; tdep->jb_pc = 2; tdep->jb_elt_size = 8; |