kern_shutdown.c (7a119578a40a3f958f996b24c8acd25e5f6cd140) | kern_shutdown.c (ba0ced82eab1bd9664aa7304a7daeb6f1d20ab78) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1986, 1988, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 105 unchanged lines hidden (view full) --- 114/* 115 * Note that stdarg.h and the ANSI style va_start macro is used for both 116 * ANSI and traditional C compilers. 117 */ 118#include <machine/stdarg.h> 119 120#ifdef KDB 121#ifdef KDB_UNATTENDED | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1986, 1988, 1991, 1993 5 * The Regents of the University of California. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 105 unchanged lines hidden (view full) --- 114/* 115 * Note that stdarg.h and the ANSI style va_start macro is used for both 116 * ANSI and traditional C compilers. 117 */ 118#include <machine/stdarg.h> 119 120#ifdef KDB 121#ifdef KDB_UNATTENDED |
122static int debugger_on_panic = 0; | 122int debugger_on_panic = 0; |
123#else | 123#else |
124static int debugger_on_panic = 1; | 124int debugger_on_panic = 1; |
125#endif 126SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, 127 CTLFLAG_RWTUN | CTLFLAG_SECURE, 128 &debugger_on_panic, 0, "Run debugger on kernel panic"); 129 130int debugger_on_trap = 0; 131SYSCTL_INT(_debug, OID_AUTO, debugger_on_trap, 132 CTLFLAG_RWTUN | CTLFLAG_SECURE, --- 1629 unchanged lines hidden --- | 125#endif 126SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, 127 CTLFLAG_RWTUN | CTLFLAG_SECURE, 128 &debugger_on_panic, 0, "Run debugger on kernel panic"); 129 130int debugger_on_trap = 0; 131SYSCTL_INT(_debug, OID_AUTO, debugger_on_trap, 132 CTLFLAG_RWTUN | CTLFLAG_SECURE, --- 1629 unchanged lines hidden --- |