Report the error number when a UME mmap fails.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5911
This commit is contained in:
Tom Hughes 2006-05-21 13:41:17 +00:00
parent e7c688d4aa
commit 268a79bdf0

View File

@ -71,8 +71,8 @@ struct elfinfo
static void check_mmap(SysRes res, Addr base, SizeT len)
{
if (res.isError) {
VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME.\n",
(ULong)base, (Long)len);
VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME with error %d.\n",
(ULong)base, (Long)len, res.val);
VG_(exit)(1);
}
}