Re: valgrind for Darwin or equivalent?
Re: valgrind for Darwin or equivalent?
- Subject: Re: valgrind for Darwin or equivalent?
- From: Eric Albert <email@hidden>
- Date: Mon, 1 Aug 2005 19:49:22 -0700
On Aug 1, 2005, at 8:53 AM, Jack Howarth wrote:
I asked because one of the gcc developers thought that there
had been a project to create a BSD version of valgrind and that might
have forked to create a Darwin one. However I can't find any
information
on that.
I briefly looked into porting Valgrind to Mac OS X on Intel during a
vacation a while back, hoping that the existence of a FreeBSD-hosted
version of Valgrind would make it easier. Unfortunately, the FreeBSD
version was very out of date, and even so, the differences between Mac
OS X and the FreeBSD kernel meant that it'd be a large undertaking.
I haven't looked into this since then, so I don't know if the FreeBSD
version has moved forward or been dropped. Either way, it'd be great
if someone managed to make Valgrind work once the first Intel-based
Macs ship.
That said, Guard Malloc is probably sufficient for your needs:
gdb /path/to/your/app
set env DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib
r
...wait till your app crashes...
bt
-Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden