Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: valgrind for Darwin or equivalent?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: valgrind for Darwin or equivalent? (From: email@hidden (Jack Howarth))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.