mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Add a new option: DDB_UNATTENDED. Stops machine dropping into DDB
when it panics, but leaving activation of DDB from the console unaffected.
This commit is contained in:
parent
96aec9b60e
commit
5ccab2afa9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14300
4 changed files with 27 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.239 1996/02/13 18:16:18 wollman Exp $
|
||||
# $Id: LINT,v 1.240 1996/02/23 15:47:41 phk Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -99,6 +99,13 @@ options SYSVMSG
|
|||
#
|
||||
options DDB
|
||||
|
||||
#
|
||||
# Don't drop into DDB for a panic. Intended for unattended operation
|
||||
# where you may want to drop to DDB from the console, but still want
|
||||
# the machine to recover from a panic
|
||||
#
|
||||
options DDB_UNATTENDED
|
||||
|
||||
#
|
||||
# KTRACE enables the system-call tracing facility ktrace(2).
|
||||
#
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.239 1996/02/13 18:16:18 wollman Exp $
|
||||
# $Id: LINT,v 1.240 1996/02/23 15:47:41 phk Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -99,6 +99,13 @@ options SYSVMSG
|
|||
#
|
||||
options DDB
|
||||
|
||||
#
|
||||
# Don't drop into DDB for a panic. Intended for unattended operation
|
||||
# where you may want to drop to DDB from the console, but still want
|
||||
# the machine to recover from a panic
|
||||
#
|
||||
options DDB_UNATTENDED
|
||||
|
||||
#
|
||||
# KTRACE enables the system-call tracing facility ktrace(2).
|
||||
#
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# LINT -- config file for checking all the sources, tries to pull in
|
||||
# as much of the source tree as it can.
|
||||
#
|
||||
# $Id: LINT,v 1.239 1996/02/13 18:16:18 wollman Exp $
|
||||
# $Id: LINT,v 1.240 1996/02/23 15:47:41 phk Exp $
|
||||
#
|
||||
# NB: You probably don't want to try running a kernel built from this
|
||||
# file. Instead, you should start from GENERIC, and add options from
|
||||
|
@ -99,6 +99,13 @@ options SYSVMSG
|
|||
#
|
||||
options DDB
|
||||
|
||||
#
|
||||
# Don't drop into DDB for a panic. Intended for unattended operation
|
||||
# where you may want to drop to DDB from the console, but still want
|
||||
# the machine to recover from a panic
|
||||
#
|
||||
options DDB_UNATTENDED
|
||||
|
||||
#
|
||||
# KTRACE enables the system-call tracing facility ktrace(2).
|
||||
#
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
|
||||
* $Id: subr_prf.c,v 1.28 1996/01/25 00:17:22 bde Exp $
|
||||
* $Id: subr_prf.c,v 1.29 1996/01/29 03:18:05 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
@ -120,7 +120,9 @@ panic(const char *fmt, ...)
|
|||
kdbpanic();
|
||||
#endif
|
||||
#ifdef DDB
|
||||
#ifndef DDB_UNATTENDED
|
||||
Debugger ("panic");
|
||||
#endif
|
||||
#endif
|
||||
boot(bootopt);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue