Module Name:    src
Committed By:   mrg
Date:           Sun Nov 13 03:21:51 UTC 2011

Modified Files:
        src/sys/ddb: db_command.c

Log Message:
set panicstr to "reboot forced via kernel debugger" when rebooting
from ddb, similar to how sync from ddb works.

this avoids various asserts and other issues during ddb reboot.


To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/sys/ddb/db_command.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ddb/db_command.c
diff -u src/sys/ddb/db_command.c:1.136 src/sys/ddb/db_command.c:1.137
--- src/sys/ddb/db_command.c:1.136	Tue May 17 04:18:06 2011
+++ src/sys/ddb/db_command.c	Sun Nov 13 03:21:51 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $	*/
+/*	$NetBSD: db_command.c,v 1.137 2011/11/13 03:21:51 mrg Exp $	*/
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.137 2011/11/13 03:21:51 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
@@ -1304,6 +1304,7 @@ db_reboot_cmd(db_expr_t addr, bool have_
 	 * called from cpu_reboot.
 	 */
 	db_recover = 0;
+	panicstr = "reboot forced via kernel debugger";
 	cpu_reboot((int)bootflags, NULL);
 #else	/* _KERNEL */
 	db_printf("This command can only be used in-kernel.\n");

Reply via email to