-/* $OpenBSD: trap.c,v 1.101 2022/08/10 10:41:35 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.102 2022/08/12 17:19:52 miod Exp $ */
/* $NetBSD: trap.c,v 1.52 2000/05/24 16:48:33 thorpej Exp $ */
/*-
p = curproc;
ucode = 0;
v = 0;
+ typ = SI_NOINFO;
framep->tf_regs[FRAME_SP] = alpha_pal_rdusp();
user = (framep->tf_regs[FRAME_PS] & ALPHA_PSL_USERMODE) != 0;
if (user) {
-/* $OpenBSD: trap.c,v 1.157 2022/07/20 05:56:34 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.158 2022/08/12 17:19:52 miod Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
KERNEL_UNLOCK();
#endif
/* pass to user debugger */
+ sv.sival_int = va;
trapsignal(p, SIGTRAP, type & ~T_USER, code, sv);
}
break;
ss_clear_breakpoints(p);
KERNEL_UNLOCK();
/* pass to user debugger */
+ sv.sival_int = va;
trapsignal(p, SIGTRAP, type & ~T_USER, TRAP_TRACE, sv);
break;
#endif