Commit 61a00871 authored by Ivan Egorov's avatar Ivan Egorov Committed by Facebook GitHub Bot

Allow symbolizer to fall back to getStackTraceSafe

Summary: This makes sense on systems without `backtrace` and with LLVM libunwind implementations.

Reviewed By: yfeldblum

Differential Revision: D23625739

fbshipit-source-id: 6ec50c94c73bda227118ffc36d6856bcd8dd0d8b
parent 90607a25
...@@ -57,6 +57,8 @@ ssize_t getStackTrace( ...@@ -57,6 +57,8 @@ ssize_t getStackTrace(
#elif FOLLY_HAVE_BACKTRACE #elif FOLLY_HAVE_BACKTRACE
int r = backtrace(reinterpret_cast<void**>(addresses), maxAddresses); int r = backtrace(reinterpret_cast<void**>(addresses), maxAddresses);
return r < 0 ? -1 : r; return r < 0 ? -1 : r;
#elif FOLLY_HAVE_LIBUNWIND
return getStackTraceSafe(addresses, maxAddresses);
#else #else
return -1; return -1;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment