Support for callstacks on Linux without glibc

This commit is contained in:
Arvid Gerstmann
2018-07-14 11:08:17 +02:00
parent 561d2dc360
commit ad48c32e1e
2 changed files with 18 additions and 13 deletions

View File

@@ -3,10 +3,10 @@
#ifdef TRACY_HAS_CALLSTACK
#if defined _WIN32 || defined __CYGWIN__
#if TRACY_HAS_CALLSTACK == 1
# include <windows.h>
# include <dbghelp.h>
#elif defined _GNU_SOURCE
#elif TRACY_HAS_CALLSTACK >= 2
# include <dlfcn.h>
# include <cxxabi.h>
#endif
@@ -14,7 +14,7 @@
namespace tracy
{
#if defined _WIN32 || defined __CYGWIN__
#if TRACY_HAS_CALLSTACK == 1
extern "C" t_RtlWalkFrameChain RtlWalkFrameChain = 0;
@@ -77,7 +77,7 @@ CallstackEntry DecodeCallstackPtr( uint64_t ptr )
return ret;
}
#elif defined __ANDROID__
#elif TRACY_HAS_CALLSTACK == 2
CallstackEntry DecodeCallstackPtr( uint64_t ptr )
{
@@ -156,7 +156,7 @@ CallstackEntry DecodeCallstackPtr( uint64_t ptr )
return ret;
}
#elif defined _GNU_SOURCE
#elif TRACY_HAS_CALLSTACK == 3
CallstackEntry DecodeCallstackPtr( uint64_t ptr )
{