>    if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
>       VG_(sprintf)(debugpath, "%s/.debug/%s", objdir, debugname);
>       if ((addr = open_debug_file(debugpath, crc, size)) == 0) {
>          VG_(sprintf)(debugpath, "/usr/lib/debug%s/%s", objdir, debugname);
>          addr = open_debug_file(debugpath, crc, size);
>       }
>    }

A bit of futzing with the message printing makes it make more sense:

--5122-- Reading syms from /lib/libc-2.10.1.so (0x5031000)
--5122--   Considering /lib/libc-2.10.1.so ..
--5122--   .. CRC mismatch (computed e2035481 wanted a2d8b96b)
--5122--   Considering /usr/lib/debug/lib/libc-2.10.1.so ..
--5122--   .. CRC is valid

Index: coregrind/m_debuginfo/readelf.c
===================================================================
--- coregrind/m_debuginfo/readelf.c     (revision 11040)
+++ coregrind/m_debuginfo/readelf.c     (working copy)
@@ -942,7 +942,7 @@
    }

    if (VG_(clo_verbosity) > 1)
-      VG_(message)(Vg_DebugMsg, "Reading debug info from %s ..\n", name);
+      VG_(message)(Vg_DebugMsg, "  Considering %s ..\n", name);

    *size = stat_buf.size;

@@ -960,9 +960,12 @@
       vg_assert(!sr_isError(res));
       if (VG_(clo_verbosity) > 1)
          VG_(message)(Vg_DebugMsg,
-            ".. CRC mismatch (computed %08x wanted %08x)\n", calccrc, crc);
+            "  .. CRC mismatch (computed %08x wanted %08x)\n", calccrc, crc);
       return 0;
    }
+
+   VG_(message)(Vg_DebugMsg,
+                "  .. CRC is valid\n");

    return sr_Res(sres);
 }

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to