When doing a reboot from ddb, set panicstr, so that later LOCKDEBUG checks

show the same mercy as with a real panic.
This commit is contained in:
martin 2008-02-02 18:16:42 +00:00
parent c0033b9584
commit d5ed42ea19

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_command.c,v 1.112 2007/12/13 02:45:11 yamt Exp $ */
/* $NetBSD: db_command.c,v 1.113 2008/02/02 18:16:42 martin Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.112 2007/12/13 02:45:11 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.113 2008/02/02 18:16:42 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -1361,6 +1361,7 @@ db_sync_cmd(db_expr_t addr, bool have_addr,
* called from cpu_reboot.
*/
db_recover = 0;
panicstr = "dump forced via kernel debugger";
cpu_reboot(RB_DUMP, NULL);
}