aboutsummaryrefslogtreecommitdiff
path: root/gdb/alpha-linux-tdep.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-04-25 05:06:08 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-04-25 05:06:08 +0000
commit6c72f9f97456e7309006148460d9a2aee4088016 (patch)
tree340d9e34963b4a93721b694da111e334110801e9 /gdb/alpha-linux-tdep.c
parent5e4f33793e2962028256c9b0bf6347e882001d6b (diff)
downloadbinutils-6c72f9f97456e7309006148460d9a2aee4088016.zip
binutils-6c72f9f97456e7309006148460d9a2aee4088016.tar.gz
binutils-6c72f9f97456e7309006148460d9a2aee4088016.tar.bz2
* alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
(alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to alpha_linux_pc_in_sigtramp. * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function. (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to alpha_osf1_pc_in_sigtramp. * alpha-tdep.c (alpha_osf_in_sigtramp): Remove. * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function. (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to alphafbsd_pc_in_sigtramp. * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function. (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to alphanbsd_pc_in_sigtramp. * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove. * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
Diffstat (limited to 'gdb/alpha-linux-tdep.c')
-rw-r--r--gdb/alpha-linux-tdep.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/alpha-linux-tdep.c b/gdb/alpha-linux-tdep.c
index f9b060d..ed7a7c6 100644
--- a/gdb/alpha-linux-tdep.c
+++ b/gdb/alpha-linux-tdep.c
@@ -85,12 +85,20 @@ alpha_linux_sigtramp_offset (CORE_ADDR pc)
return -1;
}
+static int
+alpha_linux_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
+{
+ return (alpha_linux_sigtramp_offset (pc) >= 0);
+}
+
static void
alpha_linux_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ set_gdbarch_pc_in_sigtramp (gdbarch, alpha_linux_pc_in_sigtramp);
+
tdep->dynamic_sigtramp_offset = alpha_linux_sigtramp_offset;
}