summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gdb/mmalloc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-12-30 23:27:33 +0000
committerjkh <jkh@FreeBSD.org>1994-12-30 23:27:33 +0000
commitcbfab23866a6fbbeedaea00fb9cc3c21f292ba86 (patch)
tree9e4e1ee771b678aacbaa34624639c5b3ea159d34 /gnu/usr.bin/gdb/mmalloc
parent571bcca723c6e0e2d2261e69b1f5a46eef8f9d14 (diff)
downloadFreeBSD-src-cbfab23866a6fbbeedaea00fb9cc3c21f292ba86.zip
FreeBSD-src-cbfab23866a6fbbeedaea00fb9cc3c21f292ba86.tar.gz
Hurrah! Let the champagne flow, the olive oil barrel be opened and
the wild, slippery orgy commence! Gary Jennejohn, too studly for his own good, has finally come through with the new, improved gdb 4.13. This gdb features: o kgdb support - if this works (and I urge folks to test it), we can finally purge the old and hateful version of kgdb from our source tree. o attach/detach support. See comments in README.FreeBSD for more details. o Well, it's newer. Our previous version was 4.11. Comments and flames to gj, of course! :-) Thanks, Gary. Much appreciated. The previous state of gdb/kgdb has been a thorn in all of our sides for some time.. Submitted by: gj
Diffstat (limited to 'gnu/usr.bin/gdb/mmalloc')
-rw-r--r--gnu/usr.bin/gdb/mmalloc/README.FreeBSD7
-rw-r--r--gnu/usr.bin/gdb/mmalloc/mmtrace.c12
2 files changed, 8 insertions, 11 deletions
diff --git a/gnu/usr.bin/gdb/mmalloc/README.FreeBSD b/gnu/usr.bin/gdb/mmalloc/README.FreeBSD
index 338400f..544755a 100644
--- a/gnu/usr.bin/gdb/mmalloc/README.FreeBSD
+++ b/gnu/usr.bin/gdb/mmalloc/README.FreeBSD
@@ -1,7 +1,4 @@
This is a greatly pared down libmmalloc directory. Only what's required to build
-gdb-4.12 on FreeBSD was kept.
+gdb-4.13 on FreeBSD 2.0 was kept.
-This is temporary. In FreeBSD 2.0 a fully ported libmmalloc will likely appear
-as a system library for use by all the build tools.
-
-paul@freefall.cdrom.com
+gj@freebsd.org
diff --git a/gnu/usr.bin/gdb/mmalloc/mmtrace.c b/gnu/usr.bin/gdb/mmalloc/mmtrace.c
index 73368a1..aca3508 100644
--- a/gnu/usr.bin/gdb/mmalloc/mmtrace.c
+++ b/gnu/usr.bin/gdb/mmalloc/mmtrace.c
@@ -1,5 +1,5 @@
/* More debugging hooks for `mmalloc'.
- Copyright 1991, 1992 Free Software Foundation
+ Copyright 1991, 1992, 1994 Free Software Foundation
Written April 2, 1991 by John Gilmore of Cygnus Support
Based on mcheck.c by Mike Haertel.
@@ -64,7 +64,7 @@ tr_freehook (md, ptr)
mdp = MD_TO_MDP (md);
/* Be sure to print it first. */
- fprintf (mallstream, "- %08x\n", (unsigned int) ptr);
+ fprintf (mallstream, "- %08lx\n", (unsigned long) ptr);
if (ptr == mallwatch)
tr_break ();
mdp -> mfree_hook = old_mfree_hook;
@@ -86,7 +86,7 @@ tr_mallochook (md, size)
mdp -> mmalloc_hook = tr_mallochook;
/* We could be printing a NULL here; that's OK. */
- fprintf (mallstream, "+ %08x %x\n", (unsigned int) hdr, size);
+ fprintf (mallstream, "+ %08lx %x\n", (unsigned long) hdr, size);
if (hdr == mallwatch)
tr_break ();
@@ -117,10 +117,10 @@ tr_reallochook (md, ptr, size)
mdp -> mrealloc_hook = tr_reallochook;
if (hdr == NULL)
/* Failed realloc. */
- fprintf (mallstream, "! %08x %x\n", (unsigned int) ptr, size);
+ fprintf (mallstream, "! %08lx %x\n", (unsigned long) ptr, size);
else
- fprintf (mallstream, "< %08x\n> %08x %x\n", (unsigned int) ptr,
- (unsigned int) hdr, size);
+ fprintf (mallstream, "< %08lx\n> %08lx %x\n", (unsigned long) ptr,
+ (unsigned long) hdr, size);
if (hdr == mallwatch)
tr_break ();
OpenPOWER on IntegriCloud