https://github.com/mxlgv/glibc-like-bt
GlibcBt (Glibc like backtrace) library
https://github.com/mxlgv/glibc-like-bt
backtrace glibc stacktrace
Last synced: about 1 year ago
JSON representation
GlibcBt (Glibc like backtrace) library
- Host: GitHub
- URL: https://github.com/mxlgv/glibc-like-bt
- Owner: mxlgv
- License: mit
- Created: 2024-09-13T22:42:57.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T21:04:16.000Z (over 1 year ago)
- Last Synced: 2025-02-09T22:31:03.850Z (over 1 year ago)
- Topics: backtrace, glibc, stacktrace
- Language: C
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GlibcBt
__GlibcBt__ is a simple independent backtrace library with a completely identical interface
and external behavior to
[GNU C Library backtrace](https://www.gnu.org/software/libc/manual/html_node/Backtraces.html).
## Compatibility
- OS: GNU/Linux;
- Arch: x86, x86_64.
## Building
For debugging and running tests
```sh
cmake -DCMAKE_BUILD_TYPE=Debug -B build
cmake --build build
```
For release recommended:
```sh
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -B build
cmake --build build
```
When cross-compiling, you must specify the object file format for `nasm`. \
For example:
```sh
cmake -DCMAKE_ASM_NASM_OBJECT_FORMAT=coff -B build
```
## Running tests
Make sure you have a debug build and run:
```sh
ctest --test-dir build
```