Bug 1882329 - Make StackWalk Linux support check more specific r=glandium

Differential Revision: https://phabricator.services.mozilla.com/D202862
This commit is contained in:
Patrycja Rosa 2024-05-27 21:46:09 +00:00
parent 88e37dbe42
commit 32e1cf70a0

View file

@ -44,20 +44,21 @@ using namespace mozilla;
# define MOZ_STACKWALK_SUPPORTS_MACOSX 0
#endif
#if (defined(linux) && \
((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
defined(HAVE__UNWIND_BACKTRACE)))
# define MOZ_STACKWALK_SUPPORTS_LINUX 1
#else
# define MOZ_STACKWALK_SUPPORTS_LINUX 0
#endif
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
# define HAVE___LIBC_STACK_END 1
#else
# define HAVE___LIBC_STACK_END 0
#endif
#if (defined(linux) && \
((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
defined(HAVE__UNWIND_BACKTRACE)) && \
(HAVE___LIBC_STACK_END || ANDROID))
# define MOZ_STACKWALK_SUPPORTS_LINUX 1
#else
# define MOZ_STACKWALK_SUPPORTS_LINUX 0
#endif
#if HAVE___LIBC_STACK_END
extern MOZ_EXPORT void* __libc_stack_end; // from ld-linux.so
#endif