diff options
author | Tom Jones <thj@FreeBSD.org> | 2022-04-12 09:30:22 +0000 |
---|---|---|
committer | Tom Jones <thj@FreeBSD.org> | 2022-04-12 09:34:40 +0000 |
commit | 1ea833a57290e04a5dfa8eebd6d4fa28204a807b (patch) | |
tree | 2e7b4017a4ef0d6131ba6ccf85a064c341f5bc90 /sys/kern/subr_kdb.c | |
parent | 742e7210d00b359d81b9c778ab520003704e9b6c (diff) | |
download | src-1ea833a57290e04a5dfa8eebd6d4fa28204a807b.tar.gz src-1ea833a57290e04a5dfa8eebd6d4fa28204a807b.zip |
Diffstat (limited to 'sys/kern/subr_kdb.c')
-rw-r--r-- | sys/kern/subr_kdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c index b189fe303e0f..6aa8bd17e048 100644 --- a/sys/kern/subr_kdb.c +++ b/sys/kern/subr_kdb.c @@ -292,6 +292,7 @@ void kdb_panic(const char *msg) { + kdb_why = KDB_WHY_PANIC; printf("KDB: panic\n"); panic("%s", msg); } @@ -300,6 +301,7 @@ void kdb_reboot(void) { + kdb_why = KDB_WHY_REBOOT; printf("KDB: reboot requested\n"); shutdown_nice(0); } @@ -498,9 +500,9 @@ kdb_enter(const char *why, const char *msg) { if (kdb_dbbe != NULL && kdb_active == 0) { + kdb_why = why; if (msg != NULL) printf("KDB: enter: %s\n", msg); - kdb_why = why; breakpoint(); kdb_why = KDB_WHY_UNSET; } |