Minor mods to stop make the leak detector behave properly for the
following kind of stupid test program
   int main (void) { char* a = malloc(100); return 0; }
which many people seem fond of trying for some reason.
In general the leak detector works fine.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@387 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_mylibc.c b/coregrind/vg_mylibc.c
index b2b62b4..4f8cb71 100644
--- a/coregrind/vg_mylibc.c
+++ b/coregrind/vg_mylibc.c
@@ -1241,7 +1241,7 @@
    Primitive support for bagging memory via mmap.
    ------------------------------------------------------------------ */
 
-void* VG_(get_memory_from_mmap) ( Int nBytes )
+void* VG_(get_memory_from_mmap) ( Int nBytes, Char* who )
 {
    static UInt tot_alloc = 0;
    void* p = VG_(mmap)( 0, nBytes,
@@ -1250,8 +1250,9 @@
    if (p != ((void*)(-1))) {
       tot_alloc += (UInt)nBytes;
       if (0)
-         VG_(printf)("get_memory_from_mmap: %d tot, %d req\n",
-                     tot_alloc, nBytes);
+         VG_(printf)(
+            "get_memory_from_mmap: %d tot, %d req = %p .. %p, caller %s\n",
+            tot_alloc, nBytes, p, ((char*)p) + nBytes - 1, who );
       return p;
    }
    VG_(printf)("vg_get_memory_from_mmap failed on request of %d\n",