mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Update for the KDB framework:
o Call kdb_enter() instead of Debugger(). o Make debugging code conditional upon KDB instead of DDB.
This commit is contained in:
parent
5ff374a09a
commit
4ea4f1f97e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131923
@ -304,9 +304,8 @@ null_hashrem(xp)
|
||||
}
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
#include "opt_ddb.h"
|
||||
|
||||
#ifdef DDB
|
||||
#ifdef KDB
|
||||
#define null_checkvp_barrier 1
|
||||
#else
|
||||
#define null_checkvp_barrier 0
|
||||
|
@ -42,6 +42,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -260,7 +261,7 @@ nullfs_root(mp, vpp)
|
||||
|
||||
#ifdef NULLFS_DEBUG
|
||||
if (VOP_ISLOCKED(vp, NULL)) {
|
||||
Debugger("root vnode is locked.\n");
|
||||
kdb_enter("root vnode is locked.\n");
|
||||
vrele(vp);
|
||||
return (EDEADLK);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user