summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2004-07-19 02:46:34 +0000
committersilby <silby@FreeBSD.org>2004-07-19 02:46:34 +0000
commit497e763c7509a258ebd77e54b423c279f8db4d2c (patch)
treefa1aa6ac7f2a94910423a5183c4cb65b788e1818 /sys
parent7d458476fbd530c8bdbbed9f2e07494b41032888 (diff)
downloadFreeBSD-src-497e763c7509a258ebd77e54b423c279f8db4d2c.zip
FreeBSD-src-497e763c7509a258ebd77e54b423c279f8db4d2c.tar.gz
Add a #error requiring KDB if DDB is specified. (This can probably be
relocated to a better place, if one exists.)
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index ec148fc..7031fb3 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -95,6 +95,9 @@ __FBSDID("$FreeBSD$");
#include <sys/cons.h>
#ifdef DDB
+#ifndef KDB
+#error KDB must be enabled in order for DDB to work!
+#endif
#include <ddb/ddb.h>
#include <ddb/db_sym.h>
#endif
OpenPOWER on IntegriCloud