diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 21:21:13 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 21:21:13 +0000 |
commit | 0d98473ef98de01a559f1f778615e59ca0e64b4b (patch) | |
tree | e5f30eb0dbab36b8f854df2e8125f5ed5e77986b /sys/dev | |
parent | 32de0087b025b9e12e0980a38dfd3c8798956bf7 (diff) | |
download | FreeBSD-src-0d98473ef98de01a559f1f778615e59ca0e64b4b.zip FreeBSD-src-0d98473ef98de01a559f1f778615e59ca0e64b4b.tar.gz |
Update for the KDB framework:
o Call kdb_enter() instead of Debugger().
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/vinum/vinumhdr.h | 1 | ||||
-rw-r--r-- | sys/dev/vinum/vinuminterrupt.c | 2 | ||||
-rw-r--r-- | sys/dev/vinum/vinumioctl.c | 2 | ||||
-rw-r--r-- | sys/dev/vinum/vinummemory.c | 4 |
4 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/vinum/vinumhdr.h b/sys/dev/vinum/vinumhdr.h index e8161e8..4117821 100644 --- a/sys/dev/vinum/vinumhdr.h +++ b/sys/dev/vinum/vinumhdr.h @@ -44,6 +44,7 @@ #ifdef _KERNEL #include "opt_vinum.h" #include <sys/systm.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/proc.h> #include <sys/conf.h> diff --git a/sys/dev/vinum/vinuminterrupt.c b/sys/dev/vinum/vinuminterrupt.c index 7344280..d031ef9 100644 --- a/sys/dev/vinum/vinuminterrupt.c +++ b/sys/dev/vinum/vinuminterrupt.c @@ -210,7 +210,7 @@ complete_rqe(struct buf *bp) #ifdef VINUMDEBUG if (debug & DEBUG_RESID) { if (ubp->b_resid != 0) /* still something to transfer? */ - Debugger("resid"); + kdb_enter("resid"); } #endif diff --git a/sys/dev/vinum/vinumioctl.c b/sys/dev/vinum/vinumioctl.c index 1783c92..235b125 100644 --- a/sys/dev/vinum/vinumioctl.c +++ b/sys/dev/vinum/vinumioctl.c @@ -201,7 +201,7 @@ vinum_super_ioctl(struct cdev *dev, boothowto |= RB_GDB; /* serial debug line */ else boothowto &= ~RB_GDB; /* local ddb */ - Debugger("vinum debug"); + kdb_enter("vinum debug"); } ioctl_reply = (struct _ioctl_reply *) data; /* reinstate the address to reply to */ ioctl_reply->error = 0; diff --git a/sys/dev/vinum/vinummemory.c b/sys/dev/vinum/vinummemory.c index 62c573d..ef8a541 100644 --- a/sys/dev/vinum/vinummemory.c +++ b/sys/dev/vinum/vinummemory.c @@ -175,7 +175,7 @@ MMalloc(int size, char *file, int line) for (i = 0; i < malloccount; i++) { if (((result + size) > malloced[i].address) && (result < malloced[i].address + malloced[i].size)) /* overlap */ - Debugger("Malloc overlap"); + kdb_enter("Malloc overlap"); } if (result) { char *f = basename(file); @@ -238,7 +238,7 @@ FFree(void *mem, char *file, int line) mem, file, line); - Debugger("Free"); + kdb_enter("Free"); } void |