|
From: <sv...@va...> - 2006-04-04 16:57:20
|
Author: sewardj
Date: 2006-04-04 17:57:15 +0100 (Tue, 04 Apr 2006)
New Revision: 5825
Log:
Comment-only change.
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 2006-04-04 15:43:30 UTC (rev =
5824)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-04-04 16:57:15 UTC (rev =
5825)
@@ -1696,9 +1696,15 @@
seg.hasX =3D toBool(prot & VKI_PROT_EXEC);
seg.hasT =3D False;
=20
+ /* Don't use the presence of a filename to decide if a segment in
+ the initial /proc/self/maps to decide if the segment is an AnonV
+ or FileV segment as some systems don't report the filename. Use
+ the device and inode numbers instead. Fixes bug #124528. */
seg.kind =3D SkAnonV;
- if (dev !=3D 0 && ino !=3D 0) seg.kind =3D SkFileV;
- if (filename) seg.fnIdx =3D allocate_segname( filename );
+ if (dev !=3D 0 && ino !=3D 0)=20
+ seg.kind =3D SkFileV;
+ if (filename)
+ seg.fnIdx =3D allocate_segname( filename );
=20
if (0) show_nsegment( 2,0, &seg );
add_segment( &seg );
|