summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2008-06-16 04:44:29 +0000
committerjb <jb@FreeBSD.org>2008-06-16 04:44:29 +0000
commit567c5d727eb97d412dd5c79a7dc14dc5d6f54cc9 (patch)
tree21a86f262e5f073b4daf4d61dc8a9ffe906d6168
parent591c809288af787a16f94b62d16a16b8ac5a53b0 (diff)
downloadFreeBSD-src-567c5d727eb97d412dd5c79a7dc14dc5d6f54cc9.zip
FreeBSD-src-567c5d727eb97d412dd5c79a7dc14dc5d6f54cc9.tar.gz
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.
-rw-r--r--sys/kern/kern_dtrace.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/kern/kern_dtrace.c b/sys/kern/kern_dtrace.c
index 71efe1c..1455352 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
OpenPOWER on IntegriCloud