Date: Sat, 4 Jan 2003 12:54:59 -0800 (PST) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_shutdown.c src/sys/sys systm.h Message-ID: <200301042054.h04KsxVm068088@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301042054.h04KsxVm068088>
