From: Paul Floyd Date: Tue, 9 Dec 2025 08:47:45 +0000 (+0100) Subject: Darwin: fix warning for hack to prevent crashes during stacktrace generation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de840f1459832b878fa1f572cec12ae5d315e583;p=thirdparty%2Fvalgrind.git Darwin: fix warning for hack to prevent crashes during stacktrace generation --- diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index 5175f79fe..b9cf0e62d 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -46,6 +46,11 @@ #include "pub_core_trampoline.h" #include "config.h" +#if defined(VGO_darwin) +// FIXME PJF this is bad (it's a syswrap private function) +// but the alternative for the moment is crashes when trying to produce stack traces +extern Bool ML_(safe_to_deref) ( const void *start, SizeT size ); +#endif /*------------------------------------------------------------*/ /*--- ---*/