(tr_reallochook): Produce better output for real reallocation case.
authordrepper <drepper>
Thu, 8 Oct 1998 17:00:03 +0000 (17:00 +0000)
committerdrepper <drepper>
Thu, 8 Oct 1998 17:00:03 +0000 (17:00 +0000)
malloc/mtrace.c

index 02da0ae..ec551ff 100644 (file)
@@ -204,8 +204,11 @@ tr_reallochook (ptr, size, caller)
   else if (ptr == NULL)
     fprintf (mallstream, "+ %p %#lx\n", hdr, (unsigned long int) size);
   else
-    fprintf (mallstream, "< %p\n> %p %#lx\n", ptr, hdr,
-            (unsigned long int) size);
+    {
+      fprintf (mallstream, "< %p\n", ptr);
+      tr_where (caller);
+      fprintf (mallstream, "> %p %#lx\n", hdr, (unsigned long int) size);
+    }
 
   if (hdr == mallwatch)
     tr_break ();