Namely those with a file name and an inode number but without major
and minor device numbers. See for instance https://bugs.kde.org/124528#c11
This patch also recognises segments with a file name as FileV segments
(which is what valgrind used to do prior to r5818).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15632
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. */
+ /* A segment in the initial /proc/self/maps is considered a FileV
+ segment if either it has a file name associated with it or both its
+ device and inode numbers are != 0. See bug #124528. */
seg.kind = SkAnonV;
- if (dev != 0 && ino != 0)
+ if (filename || (dev != 0 && ino != 0))
seg.kind = SkFileV;
# if defined(VGO_darwin)