diff options
author | demon <demon@FreeBSD.org> | 2002-09-02 04:43:15 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2002-09-02 04:43:15 +0800 |
commit | 66ed0ac6ca7391a2fc6a1405490e6daeddb46cc9 (patch) | |
tree | 7047b62d33388cf5f21c8f8f24cad344419406ca | |
parent | ca2821300ea833599d0dea55ee72ed504270337b (diff) | |
download | freebsd-ports-gnome-66ed0ac6ca7391a2fc6a1405490e6daeddb46cc9.tar.gz freebsd-ports-gnome-66ed0ac6ca7391a2fc6a1405490e6daeddb46cc9.tar.zst freebsd-ports-gnome-66ed0ac6ca7391a2fc6a1405490e6daeddb46cc9.zip |
New port: memcheck -- Memory Allocation Checker.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/memcheck/Makefile | 24 | ||||
-rw-r--r-- | devel/memcheck/distinfo | 1 | ||||
-rw-r--r-- | devel/memcheck/pkg-comment | 1 | ||||
-rw-r--r-- | devel/memcheck/pkg-descr | 16 | ||||
-rw-r--r-- | devel/memcheck/pkg-plist | 5 |
6 files changed, 48 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index aa732102dede..85d9b9e0778d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -336,6 +336,7 @@ SUBDIR += m68k-rtems-objc SUBDIR += make++ SUBDIR += makedepend + SUBDIR += memcheck SUBDIR += mico SUBDIR += mime SUBDIR += mingw diff --git a/devel/memcheck/Makefile b/devel/memcheck/Makefile new file mode 100644 index 000000000000..fe5ad805f518 --- /dev/null +++ b/devel/memcheck/Makefile @@ -0,0 +1,24 @@ +# Ports collection makefile for: memcheck +# Date created: Mon Sep 2, 2002 +# Whom: Dmitry Sivachenko <demon@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= memcheck +PORTVERSION= 0.1.1 +CATEGORIES= devel +MASTER_SITES= http://www.sound.net/~hald/projects/memcheck/ + +MAINTAINER= demon@FreeBSD.org + +USE_REINPLACE= yes +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes + +post-patch: +.for file in memcheck.c tmemcheck.c + @${REINPLACE_CMD} -e 's#<malloc.h>#<stdlib.h>#g' ${WRKSRC}/${file} +.endfor + +.include <bsd.port.mk> diff --git a/devel/memcheck/distinfo b/devel/memcheck/distinfo new file mode 100644 index 000000000000..39f309974bde --- /dev/null +++ b/devel/memcheck/distinfo @@ -0,0 +1 @@ +MD5 (memcheck-0.1.1.tar.gz) = 42223a9dba7e44b2090e975810e3b072 diff --git a/devel/memcheck/pkg-comment b/devel/memcheck/pkg-comment new file mode 100644 index 000000000000..02e928373404 --- /dev/null +++ b/devel/memcheck/pkg-comment @@ -0,0 +1 @@ +Memory Allocation Checker diff --git a/devel/memcheck/pkg-descr b/devel/memcheck/pkg-descr new file mode 100644 index 000000000000..ad5c62fea35c --- /dev/null +++ b/devel/memcheck/pkg-descr @@ -0,0 +1,16 @@ +This is Memory Allocation Checker package. Main features: +* Fault on pointer overrun (read or write). +* Fault on freed pointer dereference (read or write). +* Log double free or realloc of already freed pointer. +* Log memory not freed on exit. +* Check for pointer underrun on free/realloc. +* Optionally reverse behaviour of overrun and underrun. +* Optionally "churn" reallocations. Always return a different pointer. +* Optionally log pointer overruns instead of faulting. +* Optionally return freed memory to system. (May hurt checking for freed + pointer usage). +* Very small performance impact. +* Large memory footprint impact. +* Includes a validation test suite to test correctness of libmemcheck. + +WWW: http://www.sound.net/~hald/projects/memcheck/ diff --git a/devel/memcheck/pkg-plist b/devel/memcheck/pkg-plist new file mode 100644 index 000000000000..3d13f0c1058d --- /dev/null +++ b/devel/memcheck/pkg-plist @@ -0,0 +1,5 @@ +include/memcheck.h +lib/libmemcheck.so.1 +lib/libmemcheck.so +lib/libmemcheck.la +lib/libmemcheck.a |