From owner-cvs-all@FreeBSD.ORG Wed Oct 26 22:40:08 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEF6A16A41F; Wed, 26 Oct 2005 22:40:07 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E25D43D48; Wed, 26 Oct 2005 22:40:07 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9QMe7J2011004; Wed, 26 Oct 2005 22:40:07 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9QMe7l0011003; Wed, 26 Oct 2005 22:40:07 GMT (envelope-from peter) Message-Id: <200510262240.j9QMe7l0011003@repoman.freebsd.org> From: Peter Wemm Date: Wed, 26 Oct 2005 22:40:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern subr_kdb.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 22:40:08 -0000 peter 2005-10-26 22:40:07 UTC FreeBSD src repository Modified files: sys/kern subr_kdb.c Log: Commit something we found useful at work at one point. Add sysctls for debug.kdb.panic and debug.kdb.trap alongside the existing debug.kdb.enter sysctl. 'panic' causes a panic, and 'trap' causes a page fault. We used these to ensure that crash dumps succeed from those two common failure modes. This avoids the need for creating a 'panic' kld module. Revision Changes Path 1.16 +40 -0 src/sys/kern/subr_kdb.c