aboutsummaryrefslogtreecommitdiff
path: root/devel/valgrind-snapshot
diff options
context:
space:
mode:
authorSimon Barner <barner@FreeBSD.org>2005-11-15 11:22:58 +0000
committerSimon Barner <barner@FreeBSD.org>2005-11-15 11:22:58 +0000
commita168a326aac362e274efbdddcecc978d5d125242 (patch)
tree88b1f4eaa8c6a47f6d14701fb6be397a69db3a6e /devel/valgrind-snapshot
parentdb0ed6f661db45a3e4c4db78da79d9fde1dc1a3b (diff)
downloadports-a168a326aac362e274efbdddcecc978d5d125242.tar.gz
ports-a168a326aac362e274efbdddcecc978d5d125242.zip
Notes
Diffstat (limited to 'devel/valgrind-snapshot')
-rw-r--r--devel/valgrind-snapshot/files/patch-coregrind-vg_proxylwp.c48
-rw-r--r--devel/valgrind-snapshot/files/patch-coregrind_vg_unistd.h29
2 files changed, 75 insertions, 2 deletions
diff --git a/devel/valgrind-snapshot/files/patch-coregrind-vg_proxylwp.c b/devel/valgrind-snapshot/files/patch-coregrind-vg_proxylwp.c
index 21354e263c44..26164824e953 100644
--- a/devel/valgrind-snapshot/files/patch-coregrind-vg_proxylwp.c
+++ b/devel/valgrind-snapshot/files/patch-coregrind-vg_proxylwp.c
@@ -1,5 +1,5 @@
---- coregrind/vg_proxylwp.c.orig Thu Dec 9 20:02:58 2004
-+++ coregrind/vg_proxylwp.c Thu Dec 9 20:03:16 2004
+--- coregrind/vg_proxylwp.c.orig Sat Jul 17 13:46:01 2004
++++ coregrind/vg_proxylwp.c Mon Nov 7 19:33:19 2005
@@ -30,6 +30,7 @@
@@ -8,3 +8,47 @@
#ifndef UMTX_CONTESTED
# if __FreeBSD_version < 502120
+@@ -595,7 +596,7 @@
+ Int ret = 1000;
+ static const vki_kstack_t ss = { .ss_flags = VKI_SS_DISABLE };
+
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ VG_(do_syscall)(__NR__umtx_lock, &px->mutex);
+ px->mutex.u_owner |= UMTX_CONTESTED;
+ VG_(do_syscall)(__NR_thr_self, &px->lwp);
+@@ -943,7 +944,7 @@
+
+ px->exitcode = ret;
+
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ ret = VG_(do_syscall)(__NR__umtx_unlock, &px->mutex);
+ if (use_rfork)
+ VG_(do_syscall)(__NR_exit, 0);
+@@ -1098,14 +1099,14 @@
+ extern Int VG_(rfork_thread)(Int, void*, void*, void*);
+ ret = VG_(rfork_thread)(VKI_RFPROC | VKI_RFMEM | VKI_RFSIGSHARE
+ | VKI_RFTHREAD
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ | VKI_RFNOWAIT
+ #endif
+ ,
+ LWP_stack(proxy), proxylwp, proxy);
+ VG_(do_signal_routing) = True;
+ } else {
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ vki_ucontext_t ctx;
+ extern void makecontext(vki_ucontext_t*, ...);
+
+@@ -1169,7 +1170,7 @@
+ }
+ }
+ #endif
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ if (block) {
+ if(proxy->lwp != 0)
+ VG_(do_syscall)(__NR__umtx_lock, &proxy->mutex);
diff --git a/devel/valgrind-snapshot/files/patch-coregrind_vg_unistd.h b/devel/valgrind-snapshot/files/patch-coregrind_vg_unistd.h
new file mode 100644
index 000000000000..84c965d1c99a
--- /dev/null
+++ b/devel/valgrind-snapshot/files/patch-coregrind_vg_unistd.h
@@ -0,0 +1,29 @@
+--- coregrind/vg_unistd.h.orig Mon Nov 7 19:31:31 2005
++++ coregrind/vg_unistd.h Mon Nov 7 19:32:05 2005
+@@ -630,7 +630,7 @@
+ #define __NR_uuidgen 392
+ #define __NR_sendfile 393
+ #define __NR_mac_syscall 394
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ #define __NR_getfsstat 395
+ #define __NR_statfs 396
+ #define __NR_fstatfs 397
+@@ -652,7 +652,7 @@
+ #define __NR_extattr_get_link 413
+ #define __NR_extattr_delete_link 414
+ #define __NR___mac_execve 415
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ #define __NR_sigaction 416
+ #define __NR_sigreturn 417
+ #endif
+@@ -665,7 +665,7 @@
+ #define __NR___acl_delete_link 427
+ #define __NR___acl_aclcheck_link 428
+ #define __NR_sigwait 429
+-#if __FreeBSD__ == 5
++#if __FreeBSD__ >= 5
+ #define __NR_thr_create 430
+ #define __NR_thr_exit 431
+ #define __NR_thr_self 432