Read debug info from the V exe when it is installed as an in-place
build.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5020 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_debuginfo/symtab.c b/coregrind/m_debuginfo/symtab.c
index e50f1e8..8b79842 100644
--- a/coregrind/m_debuginfo/symtab.c
+++ b/coregrind/m_debuginfo/symtab.c
@@ -130,9 +130,12 @@
    that third segment, which is wrong and causes crashes.
 */
 
+/* Make a guess (doesn't have to be 100% correct) as to whether a path
+   is that of the valgrind exe we're using. */
 static Bool is_self ( HChar* filename )
 { 
-   return VG_(strstr)( filename, "/lib/valgrind/" ) != NULL;
+   return VG_(strstr)( filename, "/lib/valgrind/" ) != NULL
+          || VG_(strstr)( filename, ".in_place/" ) != NULL;
 }
 
 static void nuke_syms_in_range ( Addr start, SizeT length )