|
From: <sv...@va...> - 2005-06-25 19:45:36
|
Author: njn
Date: 2005-06-25 20:45:34 +0100 (Sat, 25 Jun 2005)
New Revision: 4020
Log:
Make the is_stage2 test work when running Valgrind in-place in a=20
source tree.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.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_aspacemgr/aspacemgr.c 2005-06-25 19:33:50 UTC (rev =
4019)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-06-25 19:45:34 UTC (rev =
4020)
@@ -738,8 +738,12 @@
static const Bool debug =3D False || mem_debug;
Segment* s;
Int idx;
- HChar* stage2_suffix =3D "lib/valgrind/stage2";
- Bool is_stage2 =3D VG_(strstr)(filename, stage2_suffix) !=3D NULL=
;
+ HChar* stage2_suffix1 =3D "lib/valgrind/stage2";
+ HChar* stage2_suffix2 =3D "coregrind/stage2";
+ Bool is_stage2 =3D False;
+ =20
+ is_stage2 =3D is_stage2 || ( VG_(strstr)(filename, stage2_suffix1) !=3D=
NULL );
+ is_stage2 =3D is_stage2 || ( VG_(strstr)(filename, stage2_suffix2) !=3D=
NULL );
=20
if (debug)
VG_(printf)(
|