Commit graph

17 commits

Author SHA1 Message Date
Aleksey Cheusov
4258d09c86 dependency: s,wip/pipestatus,devel/pipestatus, 2010-03-13 17:56:27 +00:00
Aleksey Cheusov
2821ae1d66 DEPENDS on pipestatus
MAKE_PROGRAM=  mkcmake
HOMEPAGE updated
2010-01-31 19:57:34 +00:00
Aleksey Cheusov
854da6e5fa Update to version 0.13.0
INSTALL: updated

  mk-configure>=0.14.0 is needed to build lmdbg.

  FIXED: 'make install' command installs test utilities from tests/
  subdirectory. Thanks to Mikolaj Golub for bug report.

  lmdbg-sym:
    - LMDBG uses very tricky features of GDB. As a result GDB may
      segfault on some platforms, e.g. gdb-6.4.90-debian fails on
      Debian/Etch.  In order to show users that GDB is buggy and needs
      to be fixed, an exit status of it is checked. For this purpose
      http://sf.net/projects/pipestatus/ is needed.
    - LMDBG_GDB environment variable sets the path to gdb program
      overiding path defined at build time. See scripts/Makefile.

  For better efficiency lmdbg-multi2single and lmdbg-single2multi
  internal scripts have been reimplemented in C and renamed to
  lmdbg-m2s and lmdbg-s2m respectively.

  Built-time AWK variable sets an AWK interpreter for awk script.
  See scripts/Makefile.
2010-01-31 19:53:15 +00:00
Aleksey Cheusov
ea596e1c56 update to version 0.12.0
ADDED: support for calloc(3) and posix_memalign(3).

  Latest mk-configure is required for building.

  A target for testing lmdbg is again "test"! :-)

  Partial support for OpenBSD. Partial because I don't know how to
  detect where shared lib's code begins, there are no /proc/$$/maps.

  added: -a and -g options for "lmdbg" script.

  cleanups:
    - SHLIB_MAJOR/MINOR are used instead of dirty hacks.

  "make test" is now friendly with MAKEOBJDIR

  More regression tests.
2010-01-03 13:06:18 +00:00
Aleksey Cheusov
82f795e944 LICENSE=mit 2009-08-10 19:41:45 +00:00
Aleksey Cheusov
e4bc0bd575 updated to version 0.11.0
Support for modern Linux/glibc where libraries are loaded
  to different regions of the virtual memory
  (See http://en.wikipedia.org/wiki/Address_space_layout_randomization).
  To handle this lmdbg-run adds the special "info section" information
  obtained from /proc/<pid>/maps available on NetBSD and Linux
  to the log file, and lmdbg-sym uses this information.

  fixed: enabling malloc logging in lmdbg-sym was an extreamly strange
  idea.  This was just an oversight. Now it is disabled.

  ***** A TARGET FOR TESTING LMDBG IS NOW "check", NOT "test"! *****

  Additional regression test for lmdbg-sym and shared libraries.

  WARNS=4 for libstacktrace library

  WARNS=4 for liblmdbg library

  Two internal helper scripts:
  scripts/lmdbg-multi2single and scripts/lmdbg-single2multi.

  Other minor improvements, clean-ups and fixes.
2009-07-24 23:06:12 +00:00
Aleksey Cheusov
d5232633ae fix sorting 2009-06-03 19:56:19 +00:00
Aleksey Cheusov
95888eff6b updated to 0.10.0
MAJOR CHANGES (since version 0.9.0):

  Completely NEW build system based on NetBSD make (aka bmake),
  mk-configure and pkgsrc's mk-files.  It makes building LMDBG a bit
  harder (user have to install new building tools, most probably from
  sources :-( ) but makes the code *much* simplier and makes
  development and supporting *drammatically* easier. See INSTALL file
  for the installation instructions.

  This release of LMDBG was sucessfully tested under the following
  platforms: NetBSD-5.0/x86/gcc, NetBSD-4.0/x86/gcc,
  Linux/glibc-2.3/x86/gcc, FreeBSD-6.2/x86/gcc and Solaris-10/x86/gcc.
  NetBSD-2/alpha/gcc also partially works (unfortunately gcc's
  __builtin_return_address and __builtin_frame_address return NULL
  with non-zero arguments on NetBSD-2/alpha :-(, that is stacktrace
  consists on single stack frame).

  - Now all utilities have man pages.

  - separation of libstacktrace library which is compatible (has a
    similar API) with GNU libc's backtrace(3) but works just perfectly
    under NetBSD, FreeBSD and Solaris.

  - lmdbg-leak-check has been renamed to lmdbg.

  - lmdbg-sysleaks:
    - Two new keywords in config file: ignore_basefile, ignore_baseline.
    - Support for shitty Solaris' /bin/sh.

  - lmdbg-sym:
    Fixes for -a mode. Now it outputs results in the same format as -g.

  - lmdbg-run and lmdbg-sym:
    LMDBG_ENV environment variable...

  - LMDBG_LIBDYN variables has been renamed to LMDBG_LIB.

  - tests/test.sh:
  Diverse fixes for Solaris
    - support for shitty shell :-/
    - 0x vs sprintf('%p", ...)

  - lmdbg.c:
    fixed: log_enabled variable is set from gdb, so it must not be static.
    fixed: lint(1) warnings.

  - Both libstacktrace and liblmdbg libraries are built with '-O0 -g'
    flags.
2009-05-31 12:55:53 +00:00
Aleksey Cheusov
73958b7711 DEPENDS on devel/gdb 2009-05-15 05:55:43 +00:00
Aleksey Cheusov
9af18307d2 MAKE_INSTALL is set to pkgsrc bmake, NetBSD's own /usr/bin/make is not
good because it don't see mk-configure's mk files.
2009-03-29 16:45:48 +00:00
Aleksey Cheusov
dd43f8246e fixed: pkglint warnings 2009-03-29 16:43:53 +00:00
Aleksey Cheusov
41a295d168 update to the latest version 0.10alpha1
Good bye GNU autotools aka autohell! Now lmdbg is built using
  http://sf.net/projects/mk-configure and NetBSD bmake.

  This release is intermediate.
2009-03-29 16:20:04 +00:00
Aleksey Cheusov
569a29a9aa update to 0.9.0
stacktrace.c + stacktrace.h = libstacktrace with API
  compatible with GLIBC's backtrace(3).
  See install.stacktrace Makefile's target.
  Tested under NetBSD, FreeBSD, Solaris and Linux.

  Code clean-ups
2009-03-08 11:32:19 +00:00
Aleksey Cheusov
f7c0f839f8 Update MASTER_SITES, lmdbg is now hosted on sourceforge.net 2009-03-04 10:06:54 +00:00
Aleksey Cheusov
67ad03358e update to 0.8.1
GPL phantoms were completely removed.

  Minor fixes in Makefile

  Minor clean-ups in stacktrace.c
2009-02-28 16:07:17 +00:00
Aleksey Cheusov
ee142c8a25 update to version 0.8.0
MAJOR CHANGES:

  Completely new implementation of stacktrace function.  Now it is my
  own, portable to almost any hardware where gcc works. There is no
  limit on i386 anymore. YAMD code was thrown out.  GPL was thrown out
  too. I prefer MIT license.

  Documentation is now in README file. Read it! ;-)

  Lots of regression tests was written. This release of LMDBG were
  sucessfully tested under the following platforms:
    NetBSD/x86/gcc
    NetBSD/alpha/gcc
    FreeBSD/x86/gcc
    Linux/x86/gcc
    Solaris/x86/gcc

  lmdbg-sym:
      added: -g option, synonym for --with-gdb.
      -g becomes the default.
      added: -a option for using addr2line(1) instead of gdb(1).
      fix for Solaris (printf ("%p") doesn't output leading 0x).

  lmdbg-run:
      added: -p option, synonyms for --pipe.
      malloc uses --> as a separator, not ->.

  lmdbg-check ins splitted in two executables:
     lmdbg-leaks    - for normal memory leaks,
     lmdbg-sysleaks - for memory leaks in system/external libraries.
     See README file.
2009-02-22 21:45:22 +00:00
Aleksey Cheusov
b4a9c4f23a Import lmdbg-0.4.1 as wip/lmdbg.
LMDBG - lightweight malloc debugger.

LMDBG logs the calls of malloc/realloc/free/memalign functions with their
stack frames and analyses such a logs.

lmdbg-run  - for create malloc/realloc/free/memalign logs
lmdbg-sym  - for converting address to 'file.c:NUM func_name'
lmdbg-leak - memory leaks checker
2009-02-21 11:59:50 +00:00