Commit de6149ef authored by Fumitoshi Ukai's avatar Fumitoshi Ukai

Merge pull request #101 from yasushi-saito/master

Allow permission line in /proc/self/map to be "rwx", not just "r-x".
parents 202b395c d6302219
......@@ -569,8 +569,8 @@ OpenObjectFileContainingPcAndGetStartAddress(uint64_t pc,
return -1; // Malformed line.
}
// Check flags. We are only interested in "r-x" maps.
if (memcmp(flags_start, "r-x", 3) != 0) { // Not a "r-x" map.
// Check flags. We are only interested in "r*x" maps.
if (flags_start[0] != 'r' || flags_start[2] != 'x') {
continue; // We skip this map.
}
++cursor; // Skip ' '.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment