From 8261bc4b7fdcef1cd70adabeb1235e464070ca0e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 8 Oct 1998 17:00:12 +0000 Subject: Update. * malloc/mtrace.c (tr_reallochook): Produce better output for real reallocation case. --- malloc/mtrace.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'malloc/mtrace.c') diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 02da0ae764..ec551ff49e 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -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 (); -- cgit 1.4.1