diff options
author | 2001-04-05 20:05:29 +0000 | |
---|---|---|
committer | 2001-04-05 20:05:29 +0000 | |
commit | 2ec1fd1785145cb24ec4302fb52146d7eaf8ab77 (patch) | |
tree | ffe3b75aac745c2182df275d61e1522319db53ca | |
parent | for ~R print message if server does not support rekeying. (and fix ~R). (diff) | |
download | wireguard-openbsd-2ec1fd1785145cb24ec4302fb52146d7eaf8ab77.tar.xz wireguard-openbsd-2ec1fd1785145cb24ec4302fb52146d7eaf8ab77.zip |
Tell the users what to report when the kernel crashes.
-rw-r--r-- | sys/ddb/db_trap.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c index e2cdd195753..029f564d42f 100644 --- a/sys/ddb/db_trap.c +++ b/sys/ddb/db_trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trap.c,v 1.5 1997/07/19 22:31:21 niklas Exp $ */ +/* $OpenBSD: db_trap.c,v 1.6 2001/04/05 20:05:29 art Exp $ */ /* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */ /* @@ -35,6 +35,7 @@ */ #include <sys/param.h> #include <sys/proc.h> +#include <sys/systm.h> #include <vm/vm.h> @@ -72,6 +73,13 @@ db_trap(type, code) db_dot = PC_REGS(DDB_REGS); db_print_loc_and_inst(db_dot); + if (panicstr != NULL) { + if (db_print_position() != 0) + db_printf("\n"); + db_printf("Run at least 'trace' and 'ps' and include " + "the output when reporting this panic.\n"); + } + db_command_loop(); } |