|
From: Robert W. <rj...@du...> - 2004-12-10 18:31:46
|
> I'm a new user (downloaded Valgrind yesterday) and am wondering if > anyone out there knows how to get VALGRIND_PRINTF to work. When I run > my program under memcheck, I get logging output (at least when the > program launches), but VALGRIND_PRINTF and VALGRIND_PRINTF_BACKTRACE > don't seem to do anything. > > Could I be having problems because my application is built with the > intel compiler and Valgrind was built with gcc? I'm guessing that's probably it. VALGRIND_PRINTF is a pretty ugly macro that passes the varargs over to Valgrind for processing. If this VA_LIST was generated with another compiler, then, if you're lucky, you might some output. Most likely, everything go boom. I'm not too sure what to do about this, except maybe do the printf processing in the macro and pass a fully-assembled string over. That's ugly too, though. Regards, Robert. |