summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-04-05 20:05:29 +0000
committerart <art@openbsd.org>2001-04-05 20:05:29 +0000
commit2ec1fd1785145cb24ec4302fb52146d7eaf8ab77 (patch)
treeffe3b75aac745c2182df275d61e1522319db53ca
parentfor ~R print message if server does not support rekeying. (and fix ~R). (diff)
downloadwireguard-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.c10
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();
}