|
From: <sv...@va...> - 2005-11-05 14:08:47
|
Author: sewardj
Date: 2005-11-05 14:08:35 +0000 (Sat, 05 Nov 2005)
New Revision: 5020
Log:
Read debug info from the V exe when it is installed as an in-place
build.
Modified:
trunk/coregrind/m_debuginfo/symtab.c
Modified: trunk/coregrind/m_debuginfo/symtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/symtab.c 2005-11-05 12:16:03 UTC (rev 501=
9)
+++ trunk/coregrind/m_debuginfo/symtab.c 2005-11-05 14:08:35 UTC (rev 502=
0)
@@ -130,9 +130,12 @@
that third segment, which is wrong and causes crashes.
*/
=20
+/* 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 )
{=20
- return VG_(strstr)( filename, "/lib/valgrind/" ) !=3D NULL;
+ return VG_(strstr)( filename, "/lib/valgrind/" ) !=3D NULL
+ || VG_(strstr)( filename, ".in_place/" ) !=3D NULL;
}
=20
static void nuke_syms_in_range ( Addr start, SizeT length )
|