From 5d846378f7818fc35932af86f8f2090be4bfb26e Mon Sep 17 00:00:00 2001 From: John Birrell Date: Mon, 16 Jun 2008 04:44:29 +0000 Subject: [PATCH] Remove code that isn't required. It actually breaks the case where KDTRACE_HOOKS is defined and KDB isn't. This is the case that it was intended for. --- sys/kern/kern_dtrace.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/kern/kern_dtrace.c b/sys/kern/kern_dtrace.c index 71efe1cb8dd..145535201e2 100644 --- a/sys/kern/kern_dtrace.c +++ b/sys/kern/kern_dtrace.c @@ -106,15 +106,3 @@ init_dtrace(void *dummy __unused) } SYSINIT(kdtrace, SI_SUB_KDTRACE, SI_ORDER_FIRST, init_dtrace, NULL); - -#ifndef KDB -/* - * This is a stub for the kernel debugger for the DTrace actions to call - * when the kernel has been built without KDB. - */ -void -kdb_enter(const char *why, const char *msg) -{ - printf("Cannot enter kernel debugger - No KDB in kernel.\n%s - %s\n", why, msg); -} -#endif