From: Julian Seward Date: Sat, 5 Nov 2005 14:08:35 +0000 (+0000) Subject: Read debug info from the V exe when it is installed as an in-place X-Git-Tag: svn/VALGRIND_3_1_0~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=386b6b805a4786e0c40b52a8d575c85242782b56;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/coregrind/m_debuginfo/symtab.c b/coregrind/m_debuginfo/symtab.c index e50f1e8c5c..8b798429c4 100644 --- a/coregrind/m_debuginfo/symtab.c +++ b/coregrind/m_debuginfo/symtab.c @@ -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 )