|
From: <sv...@va...> - 2006-05-21 13:41:22
|
Author: tom
Date: 2006-05-21 14:41:17 +0100 (Sun, 21 May 2006)
New Revision: 5911
Log:
Report the error number when a UME mmap fails.
Modified:
trunk/coregrind/m_ume.c
Modified: trunk/coregrind/m_ume.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_ume.c 2006-05-21 12:40:30 UTC (rev 5910)
+++ trunk/coregrind/m_ume.c 2006-05-21 13:41:17 UTC (rev 5911)
@@ -71,8 +71,8 @@
static void check_mmap(SysRes res, Addr base, SizeT len)
{
if (res.isError) {
- VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME.\n",=20
- (ULong)base, (Long)len);
+ VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME with error=
%d.\n",=20
+ (ULong)base, (Long)len, res.val);
VG_(exit)(1);
}
}
|