Files

12 lines
506 B
C
Raw Permalink Normal View History

--- include/my_stacktrace.h.orig 2024-12-16 09:20:55 UTC
2022-01-28 16:28:44 +01:00
+++ include/my_stacktrace.h
@@ -45,7 +45,7 @@
2020-02-28 22:04:41 +00:00
_WIN32 - Windows
HAVE_EXT_BACKTRACE - Unixes without backtrace(3)
2020-02-28 22:04:41 +00:00
*/
-#if defined(HAVE_BACKTRACE) || defined(_WIN32) || defined(HAVE_EXT_BACKTRACE)
2020-02-28 22:04:41 +00:00
+#if (defined(HAVE_BACKTRACE) || defined(_WIN32)) && (defined(__aarch64__) || defined(__amd64__) || defined(__i386__))
#define HAVE_STACKTRACE 1
void my_init_stacktrace();
2022-01-28 16:28:44 +01:00
void my_print_stacktrace(const uchar *stack_bottom, ulong thread_stack);