From 7e42d210121c9c2898caddcfc09d7e8d836c252e Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 21 Apr 2004 23:43:46 +0000 Subject: odds and ends --- src/libthread/386.c | 1 - src/libthread/channel.c | 2 +- src/libthread/mkfile | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/libthread') diff --git a/src/libthread/386.c b/src/libthread/386.c index 3fbf0afe..d8052f09 100644 --- a/src/libthread/386.c +++ b/src/libthread/386.c @@ -3,7 +3,6 @@ * To use this you need some patches to Valgrind that * let it help out with detecting stack overflow. */ -#define USEVALGRIND 0 #ifdef USEVALGRIND #include #endif diff --git a/src/libthread/channel.c b/src/libthread/channel.c index ce27896b..68eaa95e 100644 --- a/src/libthread/channel.c +++ b/src/libthread/channel.c @@ -497,7 +497,7 @@ altexec(Alt *a, int spl) _threaddebug(DBGCHAN, "unlocking the chanlock"); unlock(&chanlock); _procsplx(spl); - _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)&chanlock); + _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)(void*)&chanlock); while(_threadrendezvous((ulong)b->tag, 0) == ~0) ; return 1; diff --git a/src/libthread/mkfile b/src/libthread/mkfile index a76682b2..1ced9021 100644 --- a/src/libthread/mkfile +++ b/src/libthread/mkfile @@ -56,3 +56,9 @@ CLEANFILES=$CLEANFILES tprimes texec asm-Linux-386.$O: asm-FreeBSD-386.s asm-NetBSD-386.$O: asm-FreeBSD-386.s asm-OpenBSD-386.$O: asm-FreeBSD-386.s + +# sorry +VG=`test -d /home/rsc/pub/valgrind-debian && echo -DUSEVALGRIND` + +CFLAGS=$CFLAGS $VG + -- cgit v1.2.3