summaryrefslogtreecommitdiff
path: root/malloc/mtrace.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-08 17:00:12 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-08 17:00:12 +0000
commit8261bc4b7fdcef1cd70adabeb1235e464070ca0e (patch)
treeb024955f5040c89fa8a418fa966336de2ff5fc62 /malloc/mtrace.c
parent16e866fa93d88793576cfc3580bc03e6714661d8 (diff)
Update.
* malloc/mtrace.c (tr_reallochook): Produce better output for real reallocation case.
Diffstat (limited to 'malloc/mtrace.c')
-rw-r--r--malloc/mtrace.c7
1 files changed, 5 insertions, 2 deletions
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 ();