summaryrefslogtreecommitdiff
path: root/gdb/alphanbsd-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
commit95a5abebf5b654fe07f5b5e005879e2bb6854d61 (patch)
treef2074620959d949c7d5fcbe746921442bcb87eeb /gdb/alphanbsd-tdep.c
parentbab9615c10fcea87344f6f81c18a6676b32c7d02 (diff)
downloadgdb-95a5abebf5b654fe07f5b5e005879e2bb6854d61.tar.gz
* 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/alphanbsd-tdep.c')
-rw-r--r--gdb/alphanbsd-tdep.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/alphanbsd-tdep.c b/gdb/alphanbsd-tdep.c
index 3f3ae529e52..c29b3f92fdc 100644
--- a/gdb/alphanbsd-tdep.c
+++ b/gdb/alphanbsd-tdep.c
@@ -123,12 +123,20 @@ alphanbsd_sigtramp_offset (CORE_ADDR pc)
return -1;
}
+static int
+alphanbsd_pc_in_sigtramp (CORE_ADDR pc, char *func_name)
+{
+ return (alphanbsd_sigtramp_offset (pc) >= 0);
+}
+
static void
alphanbsd_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ set_gdbarch_pc_in_sigtramp (gdbarch, alphanbsd_pc_in_sigtramp);
+
/* NetBSD/alpha does not provide single step support via ptrace(2); we
must use software single-stepping. */
set_gdbarch_software_single_step (gdbarch, alpha_software_single_step);