Skip to content
A C library that may be linked into a C/C++ program to produce symbolic backtraces
C Shell Makefile M4 Awk
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config libbacktrace: update to current version from GCC trunk Dec 24, 2019
.gitignore .gitignore: add simple .gitignore file Jan 15, 2018
LICENSE libbacktrace: initial commit Sep 10, 2016
Makefile.am libbacktrace: add preliminary Mach-O support Feb 19, 2020
Makefile.in libbacktrace: add preliminary Mach-O support Feb 19, 2020
Mark.Twain-Tom.Sawyer.txt
README.md README: mention XCOFF, call this version 1.0 Jan 25, 2018
aclocal.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
alloc.c Update copyright years. Feb 19, 2020
allocfail.c Update copyright years. Feb 19, 2020
allocfail.sh Update copyright years. Feb 19, 2020
atomic.c Update copyright years. Feb 19, 2020
backtrace-supported.h.in Update copyright years. Feb 19, 2020
backtrace.c Update copyright years. Feb 19, 2020
backtrace.h Update copyright years. Feb 19, 2020
btest.c
compile
config.guess config.guess, config.sub: update to latest versions Jun 5, 2018
config.h.in libbacktrace: add preliminary Mach-O support Feb 19, 2020
config.sub
configure libbacktrace: add preliminary Mach-O support Feb 19, 2020
configure.ac
dwarf.c Update copyright years. Feb 19, 2020
edtest.c
edtest2.c
elf.c libbacktrace: don't free ELF strtab if error occurs after saving syminfo Feb 19, 2020
fileline.c
filenames.h libbacktrace: update to current version from GCC trunk Dec 24, 2019
filetype.awk libbacktrace: add preliminary Mach-O support Feb 19, 2020
install-debuginfo-for-buildid.sh.in
install-sh libbacktrace: initial commit Sep 10, 2016
instrumented_alloc.c Update copyright years. Feb 19, 2020
internal.h
libtool.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
ltmain.sh libbacktrace: update to current version from GCC trunk Dec 24, 2019
ltoptions.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
ltsugar.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
ltversion.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
lt~obsolete.m4 libbacktrace: update to current version from GCC trunk Dec 24, 2019
macho.c
missing libbacktrace: initial commit Sep 10, 2016
mmap.c
mmapio.c Update copyright years. Feb 19, 2020
move-if-change Update from gcc trunk version of libbacktrace at svn rev 256427. (#8) Jan 12, 2018
nounwind.c Update copyright years. Feb 19, 2020
pecoff.c Update copyright years. Feb 19, 2020
posix.c Update copyright years. Feb 19, 2020
print.c
read.c Update copyright years. Feb 19, 2020
simple.c Update copyright years. Feb 19, 2020
sort.c Update copyright years. Feb 19, 2020
state.c Update copyright years. Feb 19, 2020
stest.c
test-driver libbacktrace: update to current version from GCC trunk Dec 24, 2019
test_format.c Update copyright years. Feb 19, 2020
testlib.c Update copyright years. Feb 19, 2020
testlib.h Update copyright years. Feb 19, 2020
ttest.c Update copyright years. Feb 19, 2020
unittest.c Update copyright years. Feb 19, 2020
unknown.c Update copyright years. Feb 19, 2020
xcoff.c Update copyright years. Feb 19, 2020
ztest.c libbacktrace: always pass -g when compiling test code Feb 19, 2020

README.md

libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces

Initially written by Ian Lance Taylor iant@golang.org.

This is version 1.0. It is likely that this will always be version 1.0.

The libbacktrace library may be linked into a program or library and used to produce symbolic backtraces. Sample uses would be to print a detailed backtrace when an error occurs or to gather detailed profiling information.

The libbacktrace library is provided under a BSD license. See the source files for the exact license text.

The public functions are declared and documented in the header file backtrace.h, which should be #include'd by a user of the library.

Building libbacktrace will generate a file backtrace-supported.h, which a user of the library may use to determine whether backtraces will work. See the source file backtrace-supported.h.in for the macros that it defines.

As of January 2018, libbacktrace only supports ELF, PE/COFF, and XCOFF executables with DWARF debugging information. The library is written to make it straightforward to add support for other object file and debugging formats.

The library relies on the C++ unwind API defined at https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html This API is provided by GCC.

You can’t perform that action at this time.