]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin: fix warning for hack to prevent crashes during stacktrace generation
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 9 Dec 2025 08:47:45 +0000 (09:47 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 9 Dec 2025 08:47:45 +0000 (09:47 +0100)
coregrind/m_stacktrace.c

index 5175f79fef984f58d4bc1e05af929fe601ebad90..b9cf0e62d08cfbd6c477ada418f21f3dc3601e6b 100644 (file)
 #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
 
 /*------------------------------------------------------------*/
 /*---                                                      ---*/