libunwind

C API for determining the call-chain of a program

brewmacoslinux
Try with needOr install directly
Source

About

C API for determining the call-chain of a program

Commands

libunwind

Examples

Link a C program with libunwind to enable stack unwinding$ gcc -o myprogram myprogram.c -lunwind
Use libunwind in code to print the call stack$ gcc -o stacktrace stacktrace.c -lunwind -ldl
Check libunwind installation and version$ pkg-config --cflags --libs libunwind