From a8a1269d8814fe54d5d25619ca138849bca29b78 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Sep 1998 17:19:00 +0000 Subject: Update. 1998-09-01 15:36 Ulrich Drepper * malloc/Makefile: Include Makeconfig before testing config-sysdirs. * malloc/mtrace.c: Add bug report address. Update email address. Add more @XXX@ to print correct address size. * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is really initialized. * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info for munmap call instead of examining phdr again. Free all malloc()ed strings and arrays. --- malloc/mtrace.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'malloc/mtrace.pl') diff --git a/malloc/mtrace.pl b/malloc/mtrace.pl index f889294c1d..e2032d4c0a 100644 --- a/malloc/mtrace.pl +++ b/malloc/mtrace.pl @@ -29,6 +29,8 @@ sub usage { print "Usage: mtrace [OPTION]... [Binary] MtraceData\n"; print " --help print this help, then exit\n"; print " --version print version number, then exit\n"; + print "\n"; + print "Report bugs using the `glibcbug' script to .\n"; exit 0; } @@ -42,10 +44,10 @@ arglist: while (@ARGV) { $ARGV[0] eq "--vers" || $ARGV[0] eq "--versi" || $ARGV[0] eq "--versio" || $ARGV[0] eq "--version") { print "mtrace (GNU $PACKAGE) $VERSION\n"; - print "Copyright (C) 1997 Free Software Foundation, Inc.\n"; + print "Copyright (C) 1997, 1998 Free Software Foundation, Inc.\n"; print "This is free software; see the source for copying conditions. There is NO\n"; print "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"; - print "Written by Ulrich Drepper \n"; + print "Written by Ulrich Drepper \n"; exit 0; } elsif ($ARGV[0] eq "--h" || $ARGV[0] eq "--he" || $ARGV[0] eq "--hel" || @@ -125,7 +127,7 @@ while () { SWITCH: { if ($cols[$n] eq "+") { if (defined $allocated{$allocaddr}) { - printf ("+ %#010x Alloc %d duplicate: %s %s\n", + printf ("+ %#0@XXX@x Alloc %d duplicate: %s %s\n", hex($allocaddr), $nr, $wherewas{$allocaddr}, $where); } else { $allocated{$allocaddr}=$howmuch; @@ -138,7 +140,7 @@ while () { undef $allocated{$allocaddr}; undef $wherewas{$allocaddr}; } else { - printf ("- %#010x Free %d was never alloc'd %s\n", + printf ("- %#0@XXX@x Free %d was never alloc'd %s\n", hex($allocaddr), $nr, &location($where)); } last SWITCH; @@ -148,14 +150,14 @@ while () { undef $allocated{$allocaddr}; undef $wherewas{$allocaddr}; } else { - printf ("- %#010x Realloc %d was never alloc'd %s\n", + printf ("- %#0@XXX@x Realloc %d was never alloc'd %s\n", hex($allocaddr), $nr, &location($where)); } last SWITCH; } if ($cols[$n] eq ">") { if (defined $allocated{$allocaddr}) { - printf ("+ %#010x Realloc %d duplicate: %#010x %s %s\n", + printf ("+ %#0@XXX@x Realloc %d duplicate: %#010x %s %s\n", hex($allocaddr), $nr, $allocated{$allocaddr}, $wherewas{$allocaddr}, &location($where)); } else { -- cgit v1.2.3