|
From: <sv...@va...> - 2006-04-03 16:37:39
|
Author: tom
Date: 2006-04-03 17:37:30 +0100 (Mon, 03 Apr 2006)
New Revision: 5818
Log:
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.
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-03 14:25:23 UTC (rev =
5817)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-04-03 16:37:30 UTC (rev =
5818)
@@ -1697,10 +1697,8 @@
seg.hasT =3D False;
=20
seg.kind =3D SkAnonV;
- if (filename) {=20
- seg.kind =3D SkFileV;
- seg.fnIdx =3D allocate_segname( filename );
- }
+ if (dev !=3D 0 && ino !=3D 0) seg.kind =3D SkFileV;
+ if (filename) seg.fnIdx =3D allocate_segname( filename );
=20
if (0) show_nsegment( 2,0, &seg );
add_segment( &seg );
|