From 5868c862e2d178996aa66bf3553a6f59d1516e2e Mon Sep 17 00:00:00 2001 From: Jason Thorpe Date: Fri, 26 Apr 2002 07:05:35 +0000 Subject: * 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. --- gdb/alpha-tdep.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/alpha-tdep.h') diff --git a/gdb/alpha-tdep.h b/gdb/alpha-tdep.h index 8b1cf3e..c3ee007 100644 --- a/gdb/alpha-tdep.h +++ b/gdb/alpha-tdep.h @@ -106,6 +106,10 @@ struct gdbarch_tdep frame. */ CORE_ADDR (*skip_sigtramp_frame) (struct frame_info *, CORE_ADDR); + /* Translate a signal handler frame into the address of the sigcontext + structure for that signal handler. */ + CORE_ADDR (*sigcontext_addr) (struct frame_info *); + int jb_pc; /* Offset to PC value in jump buffer. If htis is negative, longjmp support will be disabled. */ -- cgit v1.1