From 35d82b2b92ef8349e5ef47b22ea6e115150f1276 Mon Sep 17 00:00:00 2001 From: cheusov Date: Wed, 7 Aug 2013 21:07:25 +0000 Subject: [PATCH] Update to 1.2.0 New tool lmdbg-head(1) was implemented, see the man page for details. README: recomendations for procfs lmdbg-sym: - Much simplier (and correct) method for address convertion was implemented. As a result lmdbg-sym works correctly on AltLinux where ASLR and PIE are enabled by default. - Breakpoint are removed very soon after creation. This saves a lot of memory consumed by gdb(1) and dramatically speeds up it. lmdbg-run: - Arguments are passed correctly to progname - On glibc-based systems (e.g. Linux) malloc hooks are not used anymore as they are declared deprecated - Addresses from lmdbg.c are not included to stacktrace - Additional checks for address (returned by stacktrace(3)) correctness. As a result gdb(1) doesn't crash and therefore lmdbg-sym(1) work correctly. - stacktrace(3) doesn't not crash anymore on NetBSD/x64_64 with system utilities. See implementation details in stacktrace.c. - New option -N - Option -v works correctly with non-zero exit status of progname. - Exits with error if progname is not specified. lmdbg-stat: - Fix for NULL dereference appeared if free(3) or realloc(3) stacktrace is seen without appropriate malloc(3) stacktrace. AWK interpreter is found at configure time via MKC_REQUIRE_PROGS. Build and regression tests were fixed for non-empty MAKEOBJDIR case. ChangeLog file is never installed. lmdbg-s2m and lmsbg-m2s was moved to libexec dir. mk-configure >= 0.24.0 is required for build. Fixes, improvements and additions in regression tests. --- devel/lmdbg/Makefile | 8 +++++--- devel/lmdbg/PLIST | 9 +++++---- devel/lmdbg/distinfo | 8 ++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/devel/lmdbg/Makefile b/devel/lmdbg/Makefile index 1d231ce40dfb..3921068c01b8 100644 --- a/devel/lmdbg/Makefile +++ b/devel/lmdbg/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2012/10/31 11:17:24 asau Exp $ +# $NetBSD: Makefile,v 1.13 2013/08/07 21:07:25 cheusov Exp $ # -DISTNAME= lmdbg-1.1.0 +DISTNAME= lmdbg-1.2.0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lmdbg/} \ http://mova.org/~cheusov/pub/lmdbg/ @@ -11,7 +11,7 @@ HOMEPAGE= http://sourceforge.net/projects/lmdbg/ COMMENT= Lightweight Modular malloc Debugger LICENSE= mit -BUILD_DEPENDS+= mk-configure>=0.23.0:../../devel/mk-configure +BUILD_DEPENDS+= mk-configure>=0.24.0:../../devel/mk-configure DEPENDS+= pipestatus-[0-9]*:../../devel/pipestatus DEPENDS+= runawk>=1.3.1:../../lang/runawk #DEPENDS+= gdb-[0-9]*:../../devel/gdb @@ -28,6 +28,8 @@ REPLACE.runawk.old= .*runawk REPLACE.runawk.new= ${PREFIX}/bin/runawk REPLACE_FILES.runawk= scripts/lmdbg-*.in +MAKE_ENV+= AWK=${AWK:Q} + post-install: cd ${WRKSRC} && \ ${MAKE_ENV} ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} install-doc diff --git a/devel/lmdbg/PLIST b/devel/lmdbg/PLIST index 6f1404a8880d..10e674fb37cc 100644 --- a/devel/lmdbg/PLIST +++ b/devel/lmdbg/PLIST @@ -1,11 +1,10 @@ -@comment $NetBSD: PLIST,v 1.3 2012/09/02 18:48:19 cheusov Exp $ +@comment $NetBSD: PLIST,v 1.4 2013/08/07 21:07:25 cheusov Exp $ bin/lmdbg bin/lmdbg-grep +bin/lmdbg-head bin/lmdbg-leaks -bin/lmdbg-m2s bin/lmdbg-modules bin/lmdbg-run -bin/lmdbg-s2m bin/lmdbg-sort bin/lmdbg-stat bin/lmdbg-strip @@ -15,7 +14,10 @@ lib/liblmdbg.a lib/liblmdbg.so lib/liblmdbg.so.0 lib/liblmdbg.so.0.0 +libexec/lmdbg/lmdbg-m2s +libexec/lmdbg/lmdbg-s2m man/man1/lmdbg-grep.1 +man/man1/lmdbg-head.1 man/man1/lmdbg-leaks.1 man/man1/lmdbg-run.1 man/man1/lmdbg-sort.1 @@ -23,7 +25,6 @@ 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/LICENSE share/doc/lmdbg/NEWS share/doc/lmdbg/README diff --git a/devel/lmdbg/distinfo b/devel/lmdbg/distinfo index 198ab494503c..4215eeb3d638 100644 --- a/devel/lmdbg/distinfo +++ b/devel/lmdbg/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.4 2012/09/02 18:48:19 cheusov Exp $ +$NetBSD: distinfo,v 1.5 2013/08/07 21:07:25 cheusov Exp $ -SHA1 (lmdbg-1.1.0.tar.gz) = f3ef21fd687464fe3ee4fb186908a292b9e45af7 -RMD160 (lmdbg-1.1.0.tar.gz) = 5a9436c0022f72039cdcbf3bd31f3720e8556ed0 -Size (lmdbg-1.1.0.tar.gz) = 71692 bytes +SHA1 (lmdbg-1.2.0.tar.gz) = ae4b1f6d32c7bca049c47cecec0121a12504464a +RMD160 (lmdbg-1.2.0.tar.gz) = 8dcac88e10080215beef6042cdbb804b73c5b896 +Size (lmdbg-1.2.0.tar.gz) = 43500 bytes