summaryrefslogtreecommitdiff
path: root/memcheck/mc_main.c
diff options
context:
space:
mode:
authortom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-07-18 08:38:44 +0000
committertom <tom@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-07-18 08:38:44 +0000
commit2a836b5cc6216dfe48294ae07c8a429c6a854188 (patch)
treedda7fd1351c8ef8a311c43e6b7dfc43db52a9f5a /memcheck/mc_main.c
parent95bfdccd9cb01d7fe04d9c2a302daebcae14ada7 (diff)
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 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r--memcheck/mc_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index 3f39f2a6..7f581e85 100644
--- a/memcheck/mc_main.c
+++ b/memcheck/mc_main.c
@@ -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);
}
}