When warning about permissions being changed on a large chunk of

memory report the actual addresses involved not just the size.

Based on patch from John Reiser <jreiser@BitWagon.com>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8440
This commit is contained in:
Tom Hughes 2008-07-18 08:38:44 +00:00
parent bacc982793
commit 12e2e7fe24

View File

@ -1357,7 +1357,8 @@ static void set_address_range_perms ( Addr a, SizeT lenT, UWord vabits16,
if (vabits16 == VA_BITS16_UNDEFINED) s = "undefined";
if (vabits16 == VA_BITS16_DEFINED ) s = "defined";
VG_(message)(Vg_UserMsg, "Warning: set address range perms: "
"large range %lu (%s)", lenT, s);
"large range [0x%lx, 0x%lx) (%s)",
a, a + lenT, s);
}
}