-/* $OpenBSD: trap.c,v 1.99 2023/04/16 06:38:50 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.100 2023/04/16 06:43:49 jsg Exp $ */
/* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */
/*-
default:
we_re_toast:
#ifdef DDB
- if (db_ktrap(type, 0, frame))
+ if (db_ktrap(type, frame->tf_err, frame))
return;
#endif
trap_print(frame, type);
-/* $OpenBSD: trap.c,v 1.161 2023/03/08 04:43:07 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.162 2023/04/16 06:43:49 jsg Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
default:
we_re_toast:
#ifdef DDB
- if (db_ktrap(type, 0, frame))
+ if (db_ktrap(type, frame->tf_err, frame))
return;
#endif
if (frame->tf_trapno < trap_types)