From baae283222243bf8b5cb33f6510c5a8aecd7c8b4 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 26 Apr 2018 06:36:49 +0000 Subject: [PATCH] change to print header in backtrace --- lib/err.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/err.c b/lib/err.c index 9f6e05d..dc44326 100644 --- a/lib/err.c +++ b/lib/err.c @@ -490,6 +490,7 @@ static void backtrace_stack_frames (hcl_t* hcl) unw_getcontext(&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++) { unw_word_t ip, sp, off;