diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-04-15 17:44:32 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-04-15 17:44:32 -0400 |
commit | ca1655b01e0f15289f5b8e7b760373c733cbdd83 (patch) | |
tree | e489df7957f98063dbb08af15a3b37535ee88881 /runtime/stack-x86_64.c | |
parent | 8558d3925ee2931b654a19f243bfa8b3be0bfc12 (diff) | |
download | systemtap-steved-ca1655b01e0f15289f5b8e7b760373c733cbdd83.tar.gz systemtap-steved-ca1655b01e0f15289f5b8e7b760373c733cbdd83.tar.xz systemtap-steved-ca1655b01e0f15289f5b8e7b760373c733cbdd83.zip |
PR6410: unwinder-less architecture tolerance
Diffstat (limited to 'runtime/stack-x86_64.c')
-rw-r--r-- | runtime/stack-x86_64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/stack-x86_64.c b/runtime/stack-x86_64.c index 9915c594..c3b171ea 100644 --- a/runtime/stack-x86_64.c +++ b/runtime/stack-x86_64.c @@ -25,6 +25,7 @@ static void _stp_stack_print_fallback(unsigned long stack, int verbose) static void __stp_stack_print(struct pt_regs *regs, int verbose, int levels) { +#ifdef STP_USE_DWARF_UNWINDER // FIXME: large stack allocation struct unwind_frame_info info; arch_unw_init_frame_info(&info, regs); @@ -42,4 +43,7 @@ static void __stp_stack_print(struct pt_regs *regs, int verbose, int levels) _stp_stack_print_fallback(UNW_SP(&info), verbose); break; } +#else /* ! STP_USE_DWARF_UNWINDER */ + _stp_stack_print_fallback(REG_SP(regs), verbose); +#endif } |