From c20ced5cd2addb28ba6e7b3edfc3b473021124fa Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 10 Jul 2004 21:47:53 +0000 Subject: Update for the KDB framework: o Call kdb_enter() instead of Debugger(). --- sys/kern/vfs_subr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/vfs_subr.c') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index ee1da10..9745d4a 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -53,6 +53,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -3775,7 +3776,7 @@ vfs_badlock(const char *msg, const char *str, struct vnode *vp) if (vfs_badlock_print) printf("%s: %p %s\n", str, (void *)vp, msg); if (vfs_badlock_ddb) - Debugger("lock violation"); + kdb_enter("lock violation"); } void @@ -3884,7 +3885,7 @@ vop_strategy_pre(void *ap) printf( "VOP_STRATEGY: bp is not locked but should be\n"); if (vfs_badlock_ddb) - Debugger("lock violation"); + kdb_enter("lock violation"); } } -- cgit v1.1