From owner-cvs-all Sat Jan 4 12:55: 0 2003 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 9C22E37B405; Sat, 4 Jan 2003 12:54:59 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4624C43ED1; Sat, 4 Jan 2003 12:54:59 -0800 (PST) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h04Ksxfh068089; Sat, 4 Jan 2003 12:54:59 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h04KsxVm068088; Sat, 4 Jan 2003 12:54:59 -0800 (PST) Message-Id: <200301042054.h04KsxVm068088@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 4 Jan 2003 12:54:59 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_shutdown.c src/sys/sys systm.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2003/01/04 12:54:59 PST Modified files: sys/kern kern_shutdown.c sys/sys systm.h Log: Introduce the void backtrace(void); function which will print a backtrace if DDB is in the kernel and an explanation if not. This is useful for recording backtraces in non-fatal circumstances and does not require pollution with DDB #includes in the files where it is used. It would of course be nice to have a non-DDB dependent version too, but since the meat of a backtrace is MD it is probably not worth it. Revision Changes Path 1.138 +14 -0 src/sys/kern/kern_shutdown.c 1.184 +1 -0 src/sys/sys/systm.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message