From: Olly B. <ol...@su...> - 2003-06-11 09:45:59
|
On Wed, Jun 11, 2003 at 02:08:36AM -0700, Beau D. Simensen wrote: > valgrind src/.libs/testsd > [<binary> shows me debug info for my code, but threads are broken] Running valgrind on src/.libs/testsd or src/.libs/lt-testsd works in some cases, but not others. It's more reliable to use: libtool --mode=execute valgrind src/testsd This lets libtool take care of any messing around with environmental variables and the like that is required to get the program to run before it has been installed. The only wrinkle is that --mode=execute seems to have problems with passing arguments to valgrind or the program in libtool 1.4.2 (you can set VALGRIND_OPTS to pass options to valgrind). I've had no such problems with libtool 1.5. Cheers, Olly |