summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2004-06-10 21:13:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2004-06-10 21:13:56 +0000
commit71bc2f21ccdaca0045da59b9610889f5a1d0d760 (patch)
tree32e577e07de8e821d436614d07d4b28217fcb7e9 /sys
parenta1ecbfdff98ce3ca771995b1321d3cf2830fdb30 (diff)
Generate SIGTRAP for breakpoint instructions.
ok mickey@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/trap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c
index 2f4091234cb..7f0d29dc131 100644
--- a/sys/arch/hppa/hppa/trap.c
+++ b/sys/arch/hppa/hppa/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.75 2004/05/13 01:22:56 mickey Exp $ */
+/* $OpenBSD: trap.c,v 1.76 2004/06/10 21:13:55 kettenis Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -278,11 +278,9 @@ trap(type, frame)
break;
case T_IBREAK | T_USER:
- /* XXX */
- frame->tf_iioq_head = frame->tf_iioq_tail;
- frame->tf_iioq_tail += 4;
case T_DBREAK | T_USER:
/* pass to user debugger */
+ trapsignal(p, SIGTRAP, type &~ T_USER, TRAP_BRKPT, sv);
break;
case T_EXCEPTION | T_USER: {