|
From: <sv...@va...> - 2006-12-27 05:21:16
|
Author: sewardj
Date: 2006-12-27 05:21:14 +0000 (Wed, 27 Dec 2006)
New Revision: 6445
Log:
Merge r6444 (Print a marginally more helpful error message if UME (ELF
loading) fails.)
Modified:
branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c
Modified: branches/VALGRIND_3_2_BRANCH/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
--- branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c 2006-12-27 05:18:33 UT=
C (rev 6444)
+++ branches/VALGRIND_3_2_BRANCH/coregrind/m_ume.c 2006-12-27 05:21:14 UT=
C (rev 6445)
@@ -71,8 +71,14 @@
static void check_mmap(SysRes res, Addr base, SizeT len)
{
if (res.isError) {
- VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME with error=
%d.\n",=20
- (ULong)base, (Long)len, res.val);
+ VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME "
+ "with error %d (%s).\n",=20
+ (ULong)base, (Long)len,=20
+ res.val, VG_(strerror)(res.val) );
+ if (res.val =3D=3D VKI_EINVAL) {
+ VG_(printf)("valgrind: this can be caused by executables with "
+ "very large text, data or bss segments.\n");
+ }
VG_(exit)(1);
}
}
|