/glibc-like-bt

GlibcBt (Glibc like backtrace) library

Primary LanguageCMIT LicenseMIT

GlibcBt

GlibcBt is a simple independent backtrace library with a completely identical interface and external behavior to GNU C Library backtrace.

Compatibility

  • OS: GNU/Linux;
  • Arch: x86, x86_64.

Building

For debugging and running tests

cmake -DCMAKE_BUILD_TYPE=Debug -B build
cmake --build build

For release recommended:

cmake -DCMAKE_BUILD_TYPE=MinSizeRel -B build
cmake --build build

When cross-compiling, you must specify the object file format for nasm.
For example:

cmake -DCMAKE_ASM_NASM_OBJECT_FORMAT=coff -B build

Running tests

Make sure you have a debug build and run:

ctest --test-dir build