From 8fe3a99e26e31bfc375c7183e84f38e9c1b7f491 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 --- hcl/lib/err.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hcl/lib/err.c b/hcl/lib/err.c index 9f6e05d..dc44326 100644 --- a/hcl/lib/err.c +++ b/hcl/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;