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:
parent
7201d7b009
commit
891e066864
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110778
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user