From: Julian Seward Date: Sat, 18 May 2002 19:52:04 +0000 (+0000) Subject: Modify cachegrind.in to track recent changes in valgrind.in X-Git-Tag: svn/VALGRIND_1_0_3~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f11cb25478a9f31254e3a88762e07249e37186e;p=thirdparty%2Fvalgrind.git Modify cachegrind.in to track recent changes in valgrind.in git-svn-id: svn://svn.valgrind.org/valgrind/trunk@293 --- diff --git a/cachegrind.in b/cachegrind.in index aafdbac2cd..a35464030b 100755 --- a/cachegrind.in +++ b/cachegrind.in @@ -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