change to print header in backtrace

This commit is contained in:
hyung-hwan 2018-04-26 06:36:49 +00:00
parent 71da060d29
commit baae283222

View File

@ -490,6 +490,7 @@ static void backtrace_stack_frames (hcl_t* hcl)
unw_getcontext(&context); unw_getcontext(&context);
unw_init_local(&cursor, &context); unw_init_local(&cursor, &context);
hcl_logbfmt (hcl, HCL_LOG_UNTYPED | HCL_LOG_DEBUG, "[BACKTRACE]\n");
for (n = 0; unw_step(&cursor) > 0; n++) for (n = 0; unw_step(&cursor) > 0; n++)
{ {
unw_word_t ip, sp, off; unw_word_t ip, sp, off;