summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-03-16 03:21:29 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-03-16 03:21:29 +0000
commitcf5180a787ea9eb4d562129a285c212b414033d4 (patch)
treedee668848659c783c553268a5a3d58176d92774f /sys/arch
parent5a85eabb6212b7ba9036cf1d3582322114b4f6d0 (diff)
PTRACE fallout.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c
index 9209869fccc..d6722a9c831 100644
--- a/sys/arch/alpha/alpha/trap.c
+++ b/sys/arch/alpha/alpha/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.31 2002/03/14 01:26:26 millert Exp $ */
+/* $OpenBSD: trap.c,v 1.32 2002/03/16 03:21:28 art Exp $ */
/* $NetBSD: trap.c,v 1.52 2000/05/24 16:48:33 thorpej Exp $ */
/*-
@@ -385,10 +385,12 @@ trap(a0, a1, a2, entry, framep)
/* FALLTHROUTH */
case ALPHA_IF_CODE_BPT:
case ALPHA_IF_CODE_BUGCHK:
+#ifdef PTRACE
if (p->p_md.md_flags & (MDP_STEP1|MDP_STEP2)) {
process_sstep(p, 0);
p->p_md.md_tf->tf_regs[FRAME_PC] -= 4;
}
+#endif
ucode = a0; /* trap type */
i = SIGTRAP;
break;