From: Nicholas Nethercote Date: Wed, 22 Jul 2009 22:41:38 +0000 (+0000) Subject: Include valgrind_libdir and VG_(libdir) in the debugLog output. This was X-Git-Tag: svn/VALGRIND_3_5_0~312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c321e6dfdf24dc965964eb42068263040c6c80b;p=thirdparty%2Fvalgrind.git Include valgrind_libdir and VG_(libdir) in the debugLog output. This was useful for me debugging a broken installation yesterday. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10536 --- diff --git a/coregrind/launcher-darwin.c b/coregrind/launcher-darwin.c index d68cd57b23..83d016a110 100644 --- a/coregrind/launcher-darwin.c +++ b/coregrind/launcher-darwin.c @@ -277,6 +277,7 @@ int main(int argc, char** argv, char** envp) { const char *cp; cp = getenv(VALGRIND_LIB); valgrind_lib = ( cp == NULL ? VG_LIBDIR : cp ); + VG_(debugLog)(1, "launcher", "valgrind_lib = %s\n", valgrind_lib); } /* Find installed architectures. Use vgpreload_core-.so as the diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 40aecc8d76..8f0ca7d672 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1571,6 +1571,7 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) { HChar *cp = VG_(getenv)(VALGRIND_LIB); if (cp != NULL) VG_(libdir) = cp; + VG_(debugLog)(1, "main", "VG_(libdir) = %s\n", VG_(libdir)); } //--------------------------------------------------------------