diff --git a/CMakeLists.txt b/CMakeLists.txt index bea8c1c..b697fc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -354,7 +354,7 @@ if( HAVE_VM_JIT AND UNIX ) if( HAVE_LIBEXECINFO ) set( ALL_C_FLAGS "${ALL_C_FLAGS} -lexecinfo" ) else( HAVE_LIBEXECINFO ) - set( HAVE_VM_JIT NO ) + # set( HAVE_VM_JIT NO ) endif( HAVE_LIBEXECINFO ) set( CMAKE_REQUIRED_FLAGS ) endif( NOT HAVE_BACKTRACE ) diff --git a/src/common/scripting/jit/jit_runtime.cpp b/src/common/scripting/jit/jit_runtime.cpp index 89672b9..bcb64e8 100644 --- a/src/common/scripting/jit/jit_runtime.cpp +++ b/src/common/scripting/jit/jit_runtime.cpp @@ -7,7 +7,6 @@ #include #include #else -#include #include #include #include @@ -806,7 +805,7 @@ static int CaptureStackTrace(int max_frames, void **out_frames) // JIT isn't supported here, so just do nothing. return 0;//return RtlCaptureStackBackTrace(0, min(max_frames, 32), out_frames, nullptr); #else - return backtrace(out_frames, max_frames); + return 0; #endif } @@ -868,7 +867,9 @@ class NativeSymbolResolver public: FString GetName(void *frame) { - FString s; + FString s = "no backtrace"; + return s; + #if 0 char **strings; void *frames[1] = { frame }; strings = backtrace_symbols(frames, 1); @@ -925,6 +926,7 @@ public: free(strings); return s; + #endif } }; #endif