https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=4fa368ebb129cd3fbb0406d16a4d4f3d6ffc1fca
commit 4fa368ebb129cd3fbb0406d16a4d4f3d6ffc1fca
Author: Paul Floyd <pj...@wa...>
Date: Sun Nov 3 20:00:33 2024 +0100
Helgrind FreeBSD: make previous hack conditonal on version
Don't want to ignore any pthread_mutex_lock calls on FreeBSD
14.1 and earlier.
Diff:
---
helgrind/hg_intercepts.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/helgrind/hg_intercepts.c b/helgrind/hg_intercepts.c
index 2e63dad87a..ba16e33f9b 100644
--- a/helgrind/hg_intercepts.c
+++ b/helgrind/hg_intercepts.c
@@ -113,6 +113,8 @@
#define LIBC_FUNC(ret_ty, f, args...) \
ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBC_SONAME,f)(args); \
ret_ty I_WRAP_SONAME_FNNAME_ZZ(VG_Z_LIBC_SONAME,f)(args)
+
+#include <osreldate.h>
#endif
// Do a client request. These are macros rather than a functions so
@@ -944,7 +946,9 @@ static int exit_WRK(int status)
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
+#if (__FreeBSD_version >= 1401500)
hg_in_exit = 1;
+#endif
CALL_FN_W_W(ret, fn, status);
|