]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add an option for entering KDB on recursive panics
authormhorne <mhorne@FreeBSD.org>
Thu, 19 Nov 2020 18:03:40 +0000 (18:03 +0000)
committermhorne <mhorne@FreeBSD.org>
Thu, 19 Nov 2020 18:03:40 +0000 (18:03 +0000)
commit641cf2d3de59d8680390f24ea4ff8f5171926c88
tree722f4c02fd6fbbf4f8b889e87c4bf3cb38a23a91
parentf374c870ecde150597f4a0fd98dcc773a3dcf24d
Add an option for entering KDB on recursive panics

There are many cases where one would choose avoid entering the debugger
on a normal panic, opting instead to reboot and possibly save a kernel
dump. However, recursive kernel panics are an unusual case that might
warrant attention from a human, so provide a secondary tunable,
debug.debugger_on_recursive_panic, to allow entering the debugger only
when this occurs.

For for simplicity in maintaining existing behaviour, the tunable
defaults to zero.

Reviewed by: cem, markj
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27271
share/man/man4/ddb.4
sys/kern/kern_shutdown.c