From: Julian Seward Date: Wed, 27 Dec 2006 05:18:33 +0000 (+0000) Subject: Print a marginally more helpful error message if UME (ELF loading) fails. X-Git-Tag: svn/VALGRIND_3_3_0~461 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2430de731a1d66ee7cc0cdddcdfa3e4f7eadc58;p=thirdparty%2Fvalgrind.git Print a marginally more helpful error message if UME (ELF loading) fails. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6444 --- diff --git a/coregrind/m_ume.c b/coregrind/m_ume.c index 0b988651aa..380727d94a 100644 --- a/coregrind/m_ume.c +++ b/coregrind/m_ume.c @@ -77,6 +77,10 @@ static void check_mmap(SysRes res, Addr base, SizeT len) "with error %d (%s).\n", (ULong)base, (Long)len, res.err, VG_(strerror)(res.err) ); + if (res.err == VKI_EINVAL) { + VG_(printf)("valgrind: this can be caused by executables with " + "very large text, data or bss segments.\n"); + } VG_(exit)(1); } }