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
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.
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