2024-05-21 12:55:51 -04:00
|
|
|
From 9aae71c6ee73431d2609be0ef74ffd4b22b36c75 Mon Sep 17 00:00:00 2001
|
2023-09-29 12:46:16 -04:00
|
|
|
From: Khem Raj <raj.khem@gmail.com>
|
2024-05-21 12:55:51 -04:00
|
|
|
Date: Fri, 22 Sep 2023 22:59:56 +0000
|
2023-09-29 12:46:16 -04:00
|
|
|
Subject: [PATCH] Musl does not have stack unwinder like glibc therefore we can
|
|
|
|
not assume that its always available on musl, we do need to check for target
|
|
|
|
environment as well which could be musl or glibc.
|
|
|
|
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
---
|
|
|
|
mozglue/misc/StackWalk.cpp | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/mozglue/misc/StackWalk.cpp b/mozglue/misc/StackWalk.cpp
|
|
|
|
index 307715b170..a8d3cb40c0 100644
|
|
|
|
--- a/mozglue/misc/StackWalk.cpp
|
|
|
|
+++ b/mozglue/misc/StackWalk.cpp
|
|
|
|
@@ -43,7 +43,7 @@ using namespace mozilla;
|
|
|
|
# define MOZ_STACKWALK_SUPPORTS_MACOSX 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if (defined(linux) && \
|
|
|
|
+#if (defined(linux) && defined(__GLIBC__) && \
|
|
|
|
((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
|
|
|
|
defined(HAVE__UNWIND_BACKTRACE)))
|
|
|
|
# define MOZ_STACKWALK_SUPPORTS_LINUX 1
|