diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-07-10 21:36:01 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-07-10 21:36:01 +0000 |
| commit | 2d50560abcbeb1907b640e5658d2ef0fd050397c (patch) | |
| tree | 9e5d95534c4335250faaf97e9ff106a860667f5a /sys/kern/kern_malloc.c | |
| parent | 89cf7c254d0b9e2fca0a500edf03e6acde6b1e80 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_malloc.c')
| -rw-r--r-- | sys/kern/kern_malloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 4bc3348b92ab..e966a4995358 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/lock.h> #include <sys/malloc.h> @@ -208,7 +209,7 @@ malloc(size, type, flags) static int curerr, once; if (once == 0 && ppsratecheck(&lasterr, &curerr, 1)) { printf("Bad malloc flags: %x\n", indx); - backtrace(); + kdb_backtrace(); flags |= M_WAITOK; once++; } @@ -216,7 +217,7 @@ malloc(size, type, flags) #endif #if 0 if (size == 0) - Debugger("zero size malloc"); + kdb_enter("zero size malloc"); #endif #ifdef MALLOC_MAKE_FAILURES if ((flags & M_NOWAIT) && (malloc_failure_rate != 0)) { |
