aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/kdb.h
diff options
context:
space:
mode:
authorPaul Saab <ps@FreeBSD.org>2005-04-20 20:52:46 +0000
committerPaul Saab <ps@FreeBSD.org>2005-04-20 20:52:46 +0000
commit8cb038b4b299c40ce7e3afd2608431414c60cc07 (patch)
tree61295d97b434dac4cea4986d76ef09a4e17daecd /sys/sys/kdb.h
parentcf7152ab4c9bc0e01adcff8b2db9d02374005022 (diff)
downloadsrc-8cb038b4b299c40ce7e3afd2608431414c60cc07.tar.gz
src-8cb038b4b299c40ce7e3afd2608431414c60cc07.zip
Don't enter the debugger if KDB_UNATTENDED is set or if
debug.debugger_on_panic=0. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=145343
Diffstat (limited to 'sys/sys/kdb.h')
-rw-r--r--sys/sys/kdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/kdb.h b/sys/sys/kdb.h
index 55d70333385b..ece16fc5aff8 100644
--- a/sys/sys/kdb.h
+++ b/sys/sys/kdb.h
@@ -57,6 +57,7 @@ struct thread;
struct trapframe;
extern int kdb_active; /* Non-zero while in debugger. */
+extern int debugger_on_panic; /* enter the debugger on panic. */
extern struct kdb_dbbe *kdb_dbbe; /* Default debugger backend or NULL. */
extern struct trapframe *kdb_frame; /* Frame to kdb_trap(). */
extern struct pcb *kdb_thrctx; /* Current context. */