]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make error messages more informative.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 5 Aug 2004 12:16:13 +0000 (12:16 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Thu, 5 Aug 2004 12:16:13 +0000 (12:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2571

coregrind/stage1.c
coregrind/ume.c

index ce408d7986e0dc3ab2200de0313ce7a8f82ad991..4fab73360f8b33a8edc2eac5648204748bd790b4 100644 (file)
@@ -149,7 +149,7 @@ static void *fix_auxv(void *v_init_esp, const struct exeinfo *info,
    /* If we didn't see all the entries we need to fix up, then we
       can't make the new executable viable. */
    if (seen != 0xf) {
-      fprintf(stderr, "fix_auxv: we didn't see enough auxv entries (seen=%x)\n", seen);
+      fprintf(stderr, "valgrind: we didn't see enough auxv entries (seen=%x)\n", seen);
       exit(1);
    }
 
@@ -188,7 +188,7 @@ static void hoops(void)
    err = do_exec(buf, &info);
 
    if (err != 0) {
-      fprintf(stderr, "failed to load %s: %s\n",
+      fprintf(stderr, "valgrind: failed to load %s: %s\n",
              buf, strerror(err));
       exit(1);
    }
index d7c18803928766620d8da391bc8f6d70dab1e0b0..735904d227bc9ed750dfd61bd31a303ba8b1e26f 100644 (file)
@@ -491,7 +491,9 @@ static int load_ELF(char *hdr, int len, int fd, const char *name,
       if (minaddr >= maxaddr ||
          (minaddr < info->exe_base ||
           maxaddr > info->exe_end)) {
-        fprintf(stderr, "Executable is mapped outside of range %p-%p\n",
+        fprintf(stderr, "Executable range %p-%p is outside the\n"
+                         "acceptable range %p-%p\n",
+                (void *)minaddr,        (void *)maxaddr,
                 (void *)info->exe_base, (void *)info->exe_end);
         return ENOMEM;
       }