Date: Fri, 9 Apr 2004 20:20:47 -0400 From: Garrett Rooney <rooneg@electricjellyfish.net> To: Doug Rabson <dfr@nlsystems.com> Cc: freebsd-stable@freebsd.org Subject: Re: Valgrind for FreeBSD Message-ID: <EA11BD5C-8A84-11D8-817F-000393CE23F4@electricjellyfish.net> In-Reply-To: <200404091207.10055.dfr@nlsystems.com> References: <200404091207.10055.dfr@nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 9, 2004, at 7:07 AM, Doug Rabson wrote: > As some of you might be aware, recently I've been working on porting > the > excellent valgrind debugger to FreeBSD (both -stable and -current). If > you are interested in trying it out, you can find details on how to get > the latest version at http://www.rabson.org/#valgrind. Enjoy... For anyone trying to build on FreeBSD 5.1, it requires a small tweak, since libc_r in that version did not have support for pthread_spinlock_t's. I believe this is the correct change, since __FreeBSD_version 501107 seems to be the next bump after the addition of pthread_spinlock_t support. -garrett Index: coregrind/arch/x86-freebsd/vg_libpthread.c =================================================================== --- coregrind/arch/x86-freebsd/vg_libpthread.c (revision 325) +++ coregrind/arch/x86-freebsd/vg_libpthread.c (working copy) @@ -2774,7 +2774,7 @@ /* POSIX spinlocks, taken from glibc linuxthreads/sysdeps/i386 */ -#if __FreeBSD__ == 5 +#if __FreeBSD_version >= 501107 int pthread_spin_init(pthread_spinlock_t *lockp, int pshared) { struct pthread_spinlock *lock = my_malloc(sizeof(struct pthread_spinlock));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EA11BD5C-8A84-11D8-817F-000393CE23F4>