From 0f11cb25478a9f31254e3a88762e07249e37186e Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sat, 18 May 2002 19:52:04 +0000 Subject: [PATCH] Modify cachegrind.in to track recent changes in valgrind.in git-svn-id: svn://svn.valgrind.org/valgrind/trunk@293 --- cachegrind.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.47.2