1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Print "Stack backtrace:" right before dumping the backtrace. We cannot

expect end users to automatically recognize a stack trace for what it is.
This commit is contained in:
Peter Wemm 2003-02-13 01:33:59 +00:00
parent 7201d7b009
commit 891e066864
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110778

View File

@ -446,6 +446,7 @@ void
backtrace(void)
{
#ifdef DDB
printf("Stack backtrace:\n");
db_print_backtrace();
#else
printf("Sorry, need DDB option to print backtrace");
@ -512,7 +513,7 @@ panic(const char *fmt, ...)
#if defined(DDB)
if (newpanic && trace_on_panic)
db_print_backtrace();
backtrace();
if (debugger_on_panic)
Debugger ("panic");
#ifdef RESTARTABLE_PANICS