mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Display the header/footer before printing the backtrace
This commit is contained in:
parent
88438d6db4
commit
8f3142e532
1 changed files with 2 additions and 0 deletions
|
@ -52,9 +52,11 @@ void Sys_PrintBackTrace() {
|
|||
void* backtrace_arr[20];
|
||||
size_t backtrace_size;
|
||||
|
||||
printf("----\nBacktrace:\n");
|
||||
// get void*'s for all entries on the stack
|
||||
backtrace_size = backtrace(backtrace_arr, sizeof(backtrace_arr) / sizeof(backtrace_arr[0]));
|
||||
backtrace_symbols_fd(backtrace_arr, backtrace_size, STDERR_FILENO);
|
||||
printf("----\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue