|
|
@ -1134,8 +1134,8 @@ void ast_backtrace(void)
|
|
|
|
|
|
|
|
|
|
|
|
if ((strings = backtrace_symbols(bt->addresses, bt->num_frames))) {
|
|
|
|
if ((strings = backtrace_symbols(bt->addresses, bt->num_frames))) {
|
|
|
|
ast_debug(1, "Got %d backtrace record%c\n", bt->num_frames, bt->num_frames != 1 ? 's' : ' ');
|
|
|
|
ast_debug(1, "Got %d backtrace record%c\n", bt->num_frames, bt->num_frames != 1 ? 's' : ' ');
|
|
|
|
for (i = 0; i < bt->num_frames; i++) {
|
|
|
|
for (i = 3; i < bt->num_frames - 2; i++) {
|
|
|
|
ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i, bt->addresses[i], strings[i]);
|
|
|
|
ast_log(LOG_DEBUG, "#%d: [%p] %s\n", i - 3, bt->addresses[i], strings[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* MALLOC_DEBUG will erroneously report an error here, unless we undef the macro. */
|
|
|
|
/* MALLOC_DEBUG will erroneously report an error here, unless we undef the macro. */
|
|
|
|