For some reason I can’t make valgrind work with my Cocoa apllication on OS X 10.6, compiled with Apple GCC 4.2.1… After googling this error I found out that valgrind doesn’t work with 64-bit executables, however my application and all the frameworks it uses is being compiled with the -m32 flag and file commmand says ./MyAppName: Mach-O executable i386, Kernel is also i386.
Can somebody please tell me why won’t valgrind work then?
By the way, I got valgrind from MacPorts…
I downloaded latest valgrind v3.6.1 from valgrind.org and compiled it under OS X and it works without any issue.