Commit Graph

648 Commits

Author SHA1 Message Date
Pavol Gono
26093d5791
MSYS2+MINGW64 platform with libbacktrace (#166)
I've updated cmake conditions, to allow libbacktrace usage under
mingw64. And fixed one compilation issue.
Tested with package
https://packages.msys2.org/package/mingw-w64-x86_64-libbacktrace
with this setup:
```
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCPPTRACE_GET_SYMBOLS_WITH_LIBBACKTRACE=On
```
2024-09-03 19:58:39 -05:00
lzw
f671819510
build: support build with libunwind on osx (#162)
macOS provides a libunwind in SDK, so we can skip the library search
process.

---------

Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2024-08-30 18:15:38 -05:00
Jeremy Rifkin
231960d472
Merge branch 'main' into dev 2024-08-30 17:18:12 -05:00
Jeremy Rifkin
cf08f2578c
Somehow forgot to commit this 2024-08-29 22:38:50 -05:00
Jeremy Rifkin
c7ff8cbf79
Add a bullet point about traces from exceptions 2024-08-29 22:32:47 -05:00
Jeremy Rifkin
9a7bd8f95e
Clarify copying of cpptrace target on windows 2024-08-28 20:02:21 -05:00
Jeremy Rifkin
0742b42dad
Update changelog and bump to v0.7.0 2024-08-21 08:47:23 -05:00
Jeremy Rifkin
31ebb3ca23
Fix a couple file endings and also make note of lazy_trace_holder::get_raw_trace in the readme 2024-08-21 00:07:36 -05:00
Jeremy Rifkin
4dcfdf5281
Bump zstd and libdwarf versions in ci scripts 2024-08-20 23:19:44 -05:00
Jeremy Rifkin
3b0eb54797
Implement a system for preventing redundant tracing during search, and other various improvements for the from_current system (#159) 2024-08-20 23:10:17 -05:00
WSUFan
0249b50698
fix Bazel build (#158) 2024-08-18 21:46:34 -05:00
Jeremy Rifkin
fddbe72a66
Quick readme update 2024-08-18 19:17:53 -05:00
WSUFan
88d681d986
Enable Bazel build system support (#153)
This pull request enables Bazel build support for cpptrace. Please note
that currently, only Linux is supported. Additional platform support
will be added if necessary.
2024-08-18 19:16:53 -05:00
Jeremy Rifkin
3e131ce8c6
Experiment with some benchmarking 2024-08-18 18:59:50 -05:00
Jeremy Rifkin
5e30d2ae60
Disable a configuration broken upstream 2024-08-18 18:18:20 -05:00
Jeremy Rifkin
b87be87c66
Fix CPPTRACE_BUILD_TESTING_DWARF_VERSION use 2024-08-18 16:56:37 -05:00
Jeremy Rifkin
b364d37f78
Implement better dwarf rangelist base address logic (#157)
Related to https://github.com/davea42/libdwarf-code/issues/255, allows
re-enabling the clang+sanitizer+rel+dsym tests.
2024-08-18 16:51:40 -05:00
Jeremy Rifkin
a4d75a3894
Unittest under libc++ (#156) 2024-08-18 14:11:51 -05:00
Jeremy Rifkin
d64a935fb4
Bump to libdwarf 0.11.0 2024-08-18 14:11:16 -05:00
Jeremy Rifkin
64e0210449
Better handle resolution of safe object frames with empty object paths 2024-08-18 13:38:06 -05:00
Jeremy Rifkin
0e2c3a130d
Fix windows build 2024-08-18 12:11:20 -05:00
Jeremy Rifkin
973309cb22
Some more platform refactoring/cleanup, also add a note to readme 2024-08-18 12:07:34 -05:00
Jeremy Rifkin
164cc75681
A little refactoring and reorganization. Remove relative includes. 2024-08-18 11:58:49 -05:00
Jeremy Rifkin
0bb5aa2318
Add a basic test for traced exception objects 2024-08-18 11:41:38 -05:00
Jeremy Rifkin
3f68171d0b
Some makefile improvements 2024-08-18 11:33:57 -05:00
Jeremy Rifkin
7621f2b277
A couple notes/comments/documentation tweaks 2024-08-18 11:20:59 -05:00
Jeremy Rifkin
5558210cbe
Bump zstd to 1.5.6, #150 2024-08-18 11:20:21 -05:00
Jeremy Rifkin
26e009c688
Add cpptrace::from_current (#155) 2024-08-18 11:11:47 -05:00
Jeremy Rifkin
d5eed55dcd
Fix -g on msvc 2024-08-18 00:56:28 -05:00
Jeremy Rifkin
df1d78d1eb
Revert "Fix -g on msvc"
This reverts commit 51551ab741.
2024-08-18 00:55:49 -05:00
Jeremy Rifkin
51551ab741
Fix -g on msvc 2024-08-18 00:53:44 -05:00
Jeremy Rifkin
70e78e3c8a
Remove some commented code 2024-08-16 10:29:00 -05:00
Degen's Regens
767ddeb10c
size_t cannot be negative (#154) 2024-08-16 10:24:40 -05:00
Jeremy
90de25f1df
Bump to v0.6.3 2024-07-13 23:16:13 -05:00
Jeremy
2ae193256d
Try using ninja in the build ci setup 2024-07-13 22:50:18 -05:00
Jeremy
a2f1812896
Disable configuration that's due to a libdwarf bug 2024-07-13 22:38:25 -05:00
Jeremy
95a233958c
Allow non-string values in matrix 2024-07-13 21:35:38 -05:00
Jeremy
59f74320fc
Add dSYM to the macos unittest matrix 2024-07-13 21:22:14 -05:00
Jeremy Rifkin
0b95a6afb9
Macos unit testing (#148) 2024-07-13 19:37:55 -05:00
Jeremy
cc2b3fce40
Add another try/catch to prevent any potential TCO 2024-07-13 19:07:58 -05:00
Jeremy
dcf89743f6
Block TCO on wrapper functions 2024-07-13 19:06:33 -05:00
Jeremy
c35ad6887a
Fix issue with incorrect reported object addresses on macos when using debug maps 2024-07-13 19:06:13 -05:00
Jeremy
f8fee797cf
Use iosfwd instead of iostream 2024-07-12 17:51:06 -05:00
Jeremy
e8fce3fad1
Fix broken links and the example code in signal-safe-tracing.md, and also add a note to the documentation about _dl_find_object being required for signal-safe tracing 2024-07-12 17:33:35 -05:00
Jeremy
15b6d9a2cd
Try turning off <format> stuff for the unittest matrix 2024-07-12 17:24:20 -05:00
Jeremy
aae6091395
Add a flag to disable the inclusion of <format> and the provision for std::formatter specializations 2024-07-12 17:22:58 -05:00
Jeremy
dbeb12b71d
Fix zstd/libdwarf setting placement, they need to not just be top-level 2024-07-12 16:59:27 -05:00
Jeremy Rifkin
7497bf2a6f
Unit test more thoroughly and rework matrix ci system (#147) 2024-07-12 00:59:22 -05:00
Jeremy
e1fb3527a4
Fix an issue with split dwarf on clang 2024-07-11 19:10:16 -05:00
Jeremy
611660de5b
Fix use after free during cleanup of split dwarf information, fixes #141 2024-07-02 21:56:35 -06:00