]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Comment-only change.
authorJulian Seward <jseward@acm.org>
Tue, 4 Apr 2006 16:57:15 +0000 (16:57 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 4 Apr 2006 16:57:15 +0000 (16:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5825

coregrind/m_aspacemgr/aspacemgr.c

index cec3f0e29583e87113ed0c63fe776670a4bdbc3d..a788fbf8afd42de1628fd0eadcb89878fabcd7ea 100644 (file)
@@ -1696,9 +1696,15 @@ static void read_maps_callback ( Addr addr, SizeT len, UInt prot,
    seg.hasX   = toBool(prot & VKI_PROT_EXEC);
    seg.hasT   = False;
 
+   /* 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 = SkAnonV;
-   if (dev != 0 && ino != 0) seg.kind  = SkFileV;
-   if (filename) seg.fnIdx = allocate_segname( filename );
+   if (dev != 0 && ino != 0) 
+      seg.kind = SkFileV;
+   if (filename)
+      seg.fnIdx = allocate_segname( filename );
 
    if (0) show_nsegment( 2,0, &seg );
    add_segment( &seg );