]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Print a marginally more helpful error message if UME (ELF loading) fails.
authorJulian Seward <jseward@acm.org>
Wed, 27 Dec 2006 05:18:33 +0000 (05:18 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 27 Dec 2006 05:18:33 +0000 (05:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6444

coregrind/m_ume.c

index 0b988651aa9375ca63615817be38039f559f4373..380727d94a1cd6d3b8ce72b5238c5dafd270ed1f 100644 (file)
@@ -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);
    }
 }