]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce the
authorPoul-Henning Kamp <phk@FreeBSD.org>
Sat, 4 Jan 2003 20:54:58 +0000 (20:54 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Sat, 4 Jan 2003 20:54:58 +0000 (20:54 +0000)
commit3c3871e5e6e218053dc1b1fe1d48ac32560feef7
tree03615131ce3e84045e995356032ffae0ee90cabe
parent646e95fe69280e0fb8a169e44c3dfda7e511355e
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.
sys/kern/kern_shutdown.c
sys/sys/systm.h