Skip to content

Commit

Permalink
don't default to generic_fp without frame pointers
Browse files Browse the repository at this point in the history
I.e. on x86-64 and riscv.
  • Loading branch information
alk committed Feb 15, 2021
1 parent 4cf7dd0 commit 91ff311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stacktrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ static bool get_stack_impl_inited;
static GetStackImplementation *get_stack_impl = &impl__instrument;
#elif defined(HAVE_GST_win32)
static GetStackImplementation *get_stack_impl = &impl__win32;
#elif defined(HAVE_GST_generic_fp) && (!defined(HAVE_GST_libunwind) || defined(TCMALLOC_DONT_PREFER_LIBUNWIND))
#elif defined(HAVE_GST_generic_fp) && !defined(NO_FRAME_POINTER) \
&& !defined(__riscv) \
&& (!defined(HAVE_GST_libunwind) || defined(TCMALLOC_DONT_PREFER_LIBUNWIND))
static GetStackImplementation *get_stack_impl = &impl__generic_fp;
#elif defined(HAVE_GST_x86) && defined(TCMALLOC_DONT_PREFER_LIBUNWIND)
static GetStackImplementation *get_stack_impl = &impl__x86;
Expand Down

0 comments on commit 91ff311

Please sign in to comment.