Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_shutdown.c
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Note that stdarg.h and the ANSI style va_start macro is used for both | * Note that stdarg.h and the ANSI style va_start macro is used for both | ||||
* ANSI and traditional C compilers. | * ANSI and traditional C compilers. | ||||
*/ | */ | ||||
#include <machine/stdarg.h> | #include <machine/stdarg.h> | ||||
#ifdef KDB | #ifdef KDB | ||||
#ifdef KDB_UNATTENDED | #ifdef KDB_UNATTENDED | ||||
static int debugger_on_panic = 0; | int debugger_on_panic = 0; | ||||
#else | #else | ||||
static int debugger_on_panic = 1; | int debugger_on_panic = 1; | ||||
#endif | #endif | ||||
SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, | SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, | ||||
CTLFLAG_RWTUN | CTLFLAG_SECURE, | CTLFLAG_RWTUN | CTLFLAG_SECURE, | ||||
&debugger_on_panic, 0, "Run debugger on kernel panic"); | &debugger_on_panic, 0, "Run debugger on kernel panic"); | ||||
int debugger_on_trap = 0; | int debugger_on_trap = 0; | ||||
SYSCTL_INT(_debug, OID_AUTO, debugger_on_trap, | SYSCTL_INT(_debug, OID_AUTO, debugger_on_trap, | ||||
CTLFLAG_RWTUN | CTLFLAG_SECURE, | CTLFLAG_RWTUN | CTLFLAG_SECURE, | ||||
▲ Show 20 Lines • Show All 1,629 Lines • Show Last 20 Lines |