From d8f04f5d4b25f4c0e5ef391e214c5a8e9f5dd231 Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 5 May 2014 15:46:40 -0500 Subject: [PATCH] Fix compile error when we don't have a dwarf unwinder in _stp_tack_kernel_print * runtime/stack.c (_stp_stack_kernel_print): Use 'c->kregs' instead of nonexistent 'regs' variable. This code is only compiled when STP_USE_DWARF_UNWINDER isn't defined. --- runtime/stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/stack.c b/runtime/stack.c index 2e591f0e0..769f7bca5 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -424,8 +424,8 @@ static void _stp_stack_kernel_print(struct context *c, int sym_flags) return; } else - /* Arch specific fallback for kernel backtraces. */ - __stp_stack_print(regs, sym_flags, MAXBACKTRACE); + /* Arch specific fallback for kernel backtraces. */ + __stp_stack_print(c->kregs, sym_flags, MAXBACKTRACE); #endif } -- 2.43.5