From 9c321e6dfdf24dc965964eb42068263040c6c80b Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 22 Jul 2009 22:41:38 +0000 Subject: [PATCH] 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 --- coregrind/launcher-darwin.c | 1 + coregrind/m_main.c | 1 + 2 files changed, 2 insertions(+) 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)); } //-------------------------------------------------------------- -- 2.47.3