Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itrooz/libbacktrace-hw
https://github.com/itrooz/libbacktrace-hw
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/itrooz/libbacktrace-hw
- Owner: iTrooz
- Created: 2024-02-18T01:15:55.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-18T01:35:14.000Z (9 months ago)
- Last Synced: 2024-02-18T02:26:49.695Z (9 months ago)
- Language: C++
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Example for libbacktrace
Working as of 2023-02-18 on Arch Linux
How I run it (feel free to adapt rather than just copy/paste)
```sh
vcpkg install libbacktrace
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
cmake --build build
build/cpp_hw
```Output for me:
```
binfile=build/cpp_hw,srcfile=/home/itrooz/ram/libbacktrace-hw/main.cpp,function=showStacktrace(),line=16
binfile=build/cpp_hw,srcfile=/home/itrooz/ram/libbacktrace-hw/main.cpp,function=baz(),line=38
binfile=build/cpp_hw,srcfile=/usr/include/c++/13.2.1/bits/invoke.h,function=void std::__invoke_impl(std::__invoke_other, void (*&)()),line=61
binfile=build/cpp_hw,srcfile=/usr/include/c++/13.2.1/bits/invoke.h,function=std::enable_if, void>::type std::__invoke_r(void (*&)()),line=111
binfile=build/cpp_hw,srcfile=/usr/include/c++/13.2.1/bits/std_function.h,function=std::_Function_handler::_M_invoke(std::_Any_data const&),line=290
binfile=build/cpp_hw,srcfile=/usr/include/c++/13.2.1/bits/std_function.h,function=std::function::operator()() const,line=591
binfile=build/cpp_hw,srcfile=/home/itrooz/ram/libbacktrace-hw/main.cpp,function=bar(),line=43
binfile=build/cpp_hw,srcfile=/home/itrooz/ram/libbacktrace-hw/main.cpp,function=foo(),line=47
binfile=build/cpp_hw,srcfile=/home/itrooz/ram/libbacktrace-hw/main.cpp,function=main,line=52
binfile=/usr/lib/libc.so.6,srcfile=??,function=??,line=0
binfile=/usr/lib/libc.so.6,srcfile=??,function=??,line=0
binfile=build/cpp_hw,srcfile=??,function=??,line=0
binfile=(null),srcfile=??,function=??,line=0
```Source: https://github.com/WerWolv/ImHex/blob/ff48d37598977af777a3b9b85511d25ea8749784/main/gui/source/stacktrace.cpp