The usual way to inspect a stacktrace of a program is to use an external debugger such as gdb and its command 'bt'. However, sometimes it is useful to obtain a stacktrace from within a program, e.g., for the purposes of logging, debugging or diagnostics. libstacktrace library provides stacktrace(3) function that have the same API/usage as glibc's backtrace(3) but works at least under NetBSD, FreeBSD and Solaris.
5 lines
155 B
Text
5 lines
155 B
Text
@comment $NetBSD: PLIST,v 1.1.1.1 2009/03/29 18:47:36 cheusov Exp $
|
|
include/stacktrace.h
|
|
lib/libstacktrace.a
|
|
lib/libstacktrace_p.a
|
|
lib/libstacktrace_pic.a
|