|
From: Paul F. <pa...@so...> - 2025-12-09 08:48:39
|
https://sourceware.org/cgit/valgrind/commit/?id=de840f1459832b878fa1f572cec12ae5d315e583 commit de840f1459832b878fa1f572cec12ae5d315e583 Author: Paul Floyd <pj...@wa...> Date: Tue Dec 9 09:47:45 2025 +0100 Darwin: fix warning for hack to prevent crashes during stacktrace generation Diff: --- coregrind/m_stacktrace.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index 5175f79fef..b9cf0e62d0 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 /*------------------------------------------------------------*/ /*--- ---*/ |