]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Modify cachegrind.in to track recent changes in valgrind.in
authorJulian Seward <jseward@acm.org>
Sat, 18 May 2002 19:52:04 +0000 (19:52 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 18 May 2002 19:52:04 +0000 (19:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@293

cachegrind.in

index aafdbac2cddbd661f1c0bed365815a3f2ca8980f..a35464030b1af5053fd813276d20e908b5a6f59c 100755 (executable)
@@ -122,12 +122,17 @@ if [ $# = 0 ] || [ z"$dousage" = z1 ]; then
    exit 1
 fi
 
+# A bit subtle.  The LD_PRELOAD added entry must be absolute
+# and not depend on LD_LIBRARY_PATH.  This is so that we can
+# mess with LD_LIBRARY_PATH for child processes, which makes
+# libpthread.so fall out of visibility, independently of
+# whether valgrind.so is visible.
 
 VG_ARGS="$CACHEGRIND_OPTS $vgsupp $vgopts --cachesim=yes"
 export VG_ARGS
 LD_LIBRARY_PATH=$VALGRIND:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
-LD_PRELOAD=valgrind.so:$LD_PRELOAD
+LD_PRELOAD=$VALGRIND/valgrind.so:$LD_PRELOAD
 export LD_PRELOAD
 #LD_DEBUG=files
 #LD_DEBUG=symbols