summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-11-19 18:03:40 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-11-19 18:03:40 +0000
commitc8a96cdcd9662bdda3686075000b6b541de3bbcc (patch)
tree722f4c02fd6fbbf4f8b889e87c4bf3cb38a23a91 /share
parent24d79e9b638a1fcd1b4c2568dededb6dbd66872f (diff)
downloadsrc-test2-c8a96cdcd9662bdda3686075000b6b541de3bbcc.tar.gz
src-test2-c8a96cdcd9662bdda3686075000b6b541de3bbcc.zip
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
Notes
Notes: svn path=/head/; revision=367848
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/ddb.412
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4
index c4ea9f9cf92a..5dab5c42a2ce 100644
--- a/share/man/man4/ddb.4
+++ b/share/man/man4/ddb.4
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 17, 2019
+.Dd November 19, 2020
.Dt DDB 4
.Os
.Sh NAME
@@ -87,6 +87,16 @@ which is the default
unless the
.Dv KDB_UNATTENDED
option is specified.
+Similarly, if the
+.Va debug.debugger_on_recursive_panic
+variable is set to
+.Dv 1 ,
+then the debugger will be invoked on a recursive kernel panic.
+This variable has a default value of
+.Dv 0 ,
+and has no effect if
+.Va debug.debugger_on_panic
+is already set non-zero.
.Pp
The current location is called
.Va dot .