summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2001-02-05 19:24:08 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2001-02-05 19:24:08 +0000
commit7b40f56c5255394518c4b464a4e77507ee32557c (patch)
treee80af9a620c573a7656af5892d387da655ff98e2
parent7d491318b6be7699dfa85a4c5891367153acd85d (diff)
If kernel is compile with support for DDB add a ddb command to enter
ddb from boot -c. -moj
-rw-r--r--sys/kern/subr_userconf.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index 5a5609cac2b..dd9f2003890 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.23 2001/02/04 21:42:10 maja Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.24 2001/02/05 19:24:07 maja Exp $ */
/*
* Copyright (c) 1996-2001 Mats O Jansson <moj@stacken.kth.se>
@@ -102,6 +102,9 @@ char *userconf_cmds[] = {
"add", "a",
"base", "b",
"change", "c",
+#if defined(DDB)
+ "ddb", "D",
+#endif
"disable", "d",
"enable", "e",
"exit", "q",
@@ -706,6 +709,11 @@ userconf_help()
case 'c':
printf("devno|dev change devices");
break;
+#if defined(DDB)
+ case 'D':
+ printf(" enter ddb");
+ break;
+#endif
case 'd':
printf("attr val|devno|dev disable devices");
break;
@@ -1239,6 +1247,11 @@ userconf_parse(cmd)
else
printf("Unknown argument\n");
break;
+#if defined(DDB)
+ case 'D':
+ Debugger();
+ break;
+#endif
case 'd':
if (*c == '\0')
printf("Attr, DevNo or Dev expected\n");