]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Read debug info from the V exe when it is installed as an in-place
authorJulian Seward <jseward@acm.org>
Sat, 5 Nov 2005 14:08:35 +0000 (14:08 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 5 Nov 2005 14:08:35 +0000 (14:08 +0000)
build.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5020

coregrind/m_debuginfo/symtab.c

index e50f1e8c5c952a9b034dfb07c55b2023109b1b7b..8b798429c4146d5635fa5625340f786c951b8cc6 100644 (file)
@@ -130,9 +130,12 @@ static void unload_symbols ( Addr start, SizeT length );
    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 )