diff options
author | cheusov <cheusov> | 2011-05-08 18:32:15 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2011-05-08 18:32:15 +0000 |
commit | 5148ca058e286d6068f9bc44298fee5e7fb759e1 (patch) | |
tree | 567205d2506387661f856dcb07cbb2dd1a4b73fa /devel/lmdbg | |
parent | f5ccddabc0e55d649ae26dfc81c161ca07cd9a3e (diff) | |
download | pkgsrc-5148ca058e286d6068f9bc44298fee5e7fb759e1.tar.gz |
LMDBG is a collection of small tools for collecting and analyzing logs
of malloc/realloc/memalign/free etc. function calls. Unlike many
others, LMDBG does not provide any way to detect overruns of the
boundaries of malloc() memory allocations, as this is not the
goal. Like most other malloc debuggers, LMDBG allows detecting memory
leaks. Unlike some others LMDBG generates full stacktraces and
separates the logging process from analysis, thus allowing you to
analyze application on a per-module basis. Simple but powerful tools
for analisis are also provided.
lmdbg-run - Creates malloc/realloc/free/memalign/... logs
lmdbg-sym - Converts addresses to 'file.c:NUM func_name'
lmdbg-leak - Checks for memory leaks
lmdbg-stat - Gathers statistical information about memory allocations
lmdbg-grep - Greps the stackframes
lmdbg-strip - Strips the stackframes
lmdbg-module - Enrichs the stackframes with a module name
lmdbg-sort - Sorts the stackframes by e.g. total allocated bytes,
a number of memory allocations etc.
lmdbg-sysleaks - Filters out system memory leaks e.g. libc's
Diffstat (limited to 'devel/lmdbg')
-rw-r--r-- | devel/lmdbg/DESCR | 20 | ||||
-rw-r--r-- | devel/lmdbg/Makefile | 41 | ||||
-rw-r--r-- | devel/lmdbg/PLIST | 28 | ||||
-rw-r--r-- | devel/lmdbg/distinfo | 5 |
4 files changed, 94 insertions, 0 deletions
diff --git a/devel/lmdbg/DESCR b/devel/lmdbg/DESCR new file mode 100644 index 00000000000..9d349a7f46d --- /dev/null +++ b/devel/lmdbg/DESCR @@ -0,0 +1,20 @@ +LMDBG is a collection of small tools for collecting and analyzing logs +of malloc/realloc/memalign/free etc. function calls. Unlike many +others, LMDBG does not provide any way to detect overruns of the +boundaries of malloc() memory allocations, as this is not the +goal. Like most other malloc debuggers, LMDBG allows detecting memory +leaks. Unlike some others LMDBG generates full stacktraces and +separates the logging process from analysis, thus allowing you to +analyze application on a per-module basis. Simple but powerful tools +for analisis are also provided. + +lmdbg-run - Creates malloc/realloc/free/memalign/... logs +lmdbg-sym - Converts addresses to 'file.c:NUM func_name' +lmdbg-leak - Checks for memory leaks +lmdbg-stat - Gathers statistical information about memory allocations +lmdbg-grep - Greps the stackframes +lmdbg-strip - Strips the stackframes +lmdbg-module - Enrichs the stackframes with a module name +lmdbg-sort - Sorts the stackframes by e.g. total allocated bytes, + a number of memory allocations etc. +lmdbg-sysleaks - Filters out system memory leaks e.g. libc's diff --git a/devel/lmdbg/Makefile b/devel/lmdbg/Makefile new file mode 100644 index 00000000000..030f18b8ab3 --- /dev/null +++ b/devel/lmdbg/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/05/08 18:32:15 cheusov Exp $ +# + +DISTNAME= lmdbg-0.16.0 +PKGREVISION= 1 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lmdbg/} \ + http://mova.org/~cheusov/pub/lmdbg/ + +MAINTAINER= cheusov@tut.by +HOMEPAGE= http://sourceforge.net/projects/lmdbg/ +COMMENT= Lightweight Modular malloc Debugger +LICENSE= mit + +BUILD_DEPENDS+= mk-configure>=0.20.0:../../devel/mk-configure +DEPENDS+= pipestatus-[0-9]*:../../devel/pipestatus +#DEPENDS+= gdb-[0-9]*:../../devel/gdb + +ONLY_FOR_COMPILER= gcc icc +NOT_FOR_PLATFORM= Darwin-*-* + +PKG_DESTDIR_SUPPORT= user-destdir + +TEST_TARGET= test + +MAKE_ENV= MANDIR=${PREFIX}/${PKGMANDIR} + +DOCDIR= share/doc/lmdbg +DOCFILES= README NEWS ChangeLog + +INSTALLATION_DIRS= ${DOCDIR} + +post-install: +.for f in ${DOCFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR} +.endfor + +.include "../../devel/libjudy/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" + +MAKE_PROGRAM= ${PREFIX}/bin/mkcmake diff --git a/devel/lmdbg/PLIST b/devel/lmdbg/PLIST new file mode 100644 index 00000000000..3643fd2f79d --- /dev/null +++ b/devel/lmdbg/PLIST @@ -0,0 +1,28 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/08 18:32:15 cheusov Exp $ +bin/lmdbg +bin/lmdbg-grep +bin/lmdbg-leaks +bin/lmdbg-m2s +bin/lmdbg-modules +bin/lmdbg-run +bin/lmdbg-s2m +bin/lmdbg-sort +bin/lmdbg-stat +bin/lmdbg-strip +bin/lmdbg-sym +bin/lmdbg-sysleaks +lib/liblmdbg.a +lib/liblmdbg.so +lib/liblmdbg.so.0 +lib/liblmdbg.so.0.0 +man/man1/lmdbg-grep.1 +man/man1/lmdbg-leaks.1 +man/man1/lmdbg-run.1 +man/man1/lmdbg-sort.1 +man/man1/lmdbg-stat.1 +man/man1/lmdbg-sym.1 +man/man1/lmdbg-sysleaks.1 +man/man1/lmdbg.1 +share/doc/lmdbg/ChangeLog +share/doc/lmdbg/NEWS +share/doc/lmdbg/README diff --git a/devel/lmdbg/distinfo b/devel/lmdbg/distinfo new file mode 100644 index 00000000000..7d0d940d9ff --- /dev/null +++ b/devel/lmdbg/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/05/08 18:32:15 cheusov Exp $ + +SHA1 (lmdbg-0.16.0.tar.gz) = c0f72da9bc98f0f0db57e3304c7c3e492ae57701 +RMD160 (lmdbg-0.16.0.tar.gz) = 1c68c0119987a8929d94ee1c8367bf5d5fd5a712 +Size (lmdbg-0.16.0.tar.gz) = 46426 bytes |