Jeremy Rifkin
81d4776a22
Differentiate stacktrace_from_current_z_* from the non-z versions in another test so they aren't merged during LTO/ICF, related to #179
2024-10-10 20:03:03 -05:00
Jeremy Rifkin
0d53defcd9
Only do the inline resolution test under libdwarf, #178
2024-10-06 17:16:18 -05:00
Vittorio Romeo
0ddbbf43cb
Improve compilation times on Windows ( #172 )
...
Thank you for the very useful library!
Few improvements:
- Better header hygiene
- Isolate `windows.h` to `.cpp` whenever possible
- Use `WIN32_LEAN_AND_MEAN`
- Remove unused headers
Tested on Windows with
```
cmake .. -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=1
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-ftime-trace -Wall -Wextra -Wpedantic
-Wno-ignored-attributes" -DCMAKE_COLOR_DIAGNOSTICS=1 -DCPPTRACE_BUILD_TESTING=1
-DCPPTRACE_BUILD_BENCHMARKING=0
```
There's a lot more that can be improved if you are interested.
---------
Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2024-10-02 10:55:13 -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
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
0bb5aa2318
Add a basic test for traced exception objects
2024-08-18 11:41:38 -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 Rifkin
7497bf2a6f
Unit test more thoroughly and rework matrix ci system ( #147 )
2024-07-12 00:59:22 -05:00
Jeremy
b93028921b
Turn on -g unconditionally
2024-07-02 13:34:15 -06:00
Jeremy
bf0551b781
Add some extra checks to unit tests
2024-06-22 19:48:04 -05:00
Jeremy Rifkin
7a9ed920d5
Add unit tests to CI ( #140 )
2024-06-19 20:33:32 -05:00
Jeremy
ce075b056f
Make unit testing more robust
2024-06-19 17:11:24 -05:00
Jeremy
2499fa4a67
Add option to build tests with external gtest, closes #130
2024-05-28 20:56:54 -05:00
Jeremy Rifkin
b3836e9318
Support -Wpedantic if someone sets the flag globally while using FetchContent ( #127 )
...
Closes #107
2024-05-23 21:18:11 -05:00
Jeremy
b1e3179a97
A couple quick fixes
2024-05-05 17:51:50 -05:00
Jeremy
9275f62fc5
Fix ci?
2024-05-05 15:30:24 -05:00
Jeremy
93b1d1c76a
Add basic unittest
2024-05-04 22:34:25 -05:00
Jeremy
f8ebdd26be
Small test refactor
2024-05-04 11:52:45 -05:00
Jeremy
5a1f4b6d37
Add an error message for exec failures to the signal_demo, resolves #111
2024-04-18 19:38:19 -05:00
Jeremy Rifkin
d99f1745d2
Basic source code snippet system ( #98 )
2024-02-28 23:29:24 -06:00
Jeremy
d5b2646283
Merge branch 'main' into dev
2024-02-27 00:23:10 -06:00
Bruce Mitchener
aa446b0540
Fix typos. ( #90 )
2024-02-18 00:10:21 -06:00
Jeremy
3cd8e92e66
Handle copying libcpptrace.dll better for findpackage integration
2024-02-12 22:14:03 -06:00
Jeremy
90802c6be1
deal with a warning under testing build that's annoyed me for a while
2024-02-11 02:11:12 -06:00
Jeremy
68f919f292
Add ctrace documentation
2024-02-07 00:11:48 -06:00
Jeremy
78dd053f21
Light ctrace refactoring
2024-02-06 23:10:02 -06:00
Jeremy Rifkin
a65aed2752
Aquire zstd with fetchcontent for libdwarf 9 ( #85 )
2024-02-01 00:14:48 -06:00
Jeremy
b1ff59b59c
Update ctrace demo to be a .c
2024-01-29 23:18:21 -06:00
eightfold
218957dfb0
New C api ( #80 )
...
Updated C API following the requested scheme. May implement "exceptions"
later...
Closes #38
---------
Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2024-01-23 00:16:20 -06:00
Jeremy
2a4a8066d3
Rework the object trace interface a bit and clarify their purpose. Also rename minimal_object_trace to safe_object_trace
2023-11-20 23:01:19 -06:00
Jeremy
a6a64b5671
Add shared library warmup
2023-11-20 22:41:24 -06:00
Jeremy
cd59ab5478
Added signal tracing demo
2023-11-19 23:46:49 -06:00
Jeremy
ac13e71877
Implement signal-safe resolution of basic object information
2023-11-19 22:49:58 -06:00
Jeremy
49c86921ce
Update test case expected outputs
2023-11-15 12:16:43 -05:00
Jeremy
aed456bc63
Handle null lines / columns better
2023-11-15 11:52:24 -05:00
Jeremy
eb35a6a7ba
Fix test
2023-11-06 12:42:06 -05:00
Jeremy Rifkin
98368fb417
CMake improvements ( #57 )
2023-11-06 12:12:07 -05:00
Jeremy
5bbadbf5b2
Revert "Try bindir, might revert"
...
This reverts commit ff8f761a2b .
2023-10-08 22:03:14 -04:00
Jeremy
ff8f761a2b
Try bindir, might revert
2023-10-08 14:58:05 -04:00
Jeremy
05c3f7160b
Add specialized terminate handler and add error handling info to the README. Also updated demo.
2023-10-07 17:34:49 -04:00
Jeremy
8bb8a2020c
Add some utilities for exception handling and detecting whether stderr is a terminal
2023-10-07 14:59:04 -04:00
Jeremy
d6f6617c14
Update demo
2023-09-30 03:35:11 -04:00
Jeremy Rifkin
183cdf5a1c
Error handling improvements ( #46 )
2023-09-23 17:46:26 -04:00
Jeremy Rifkin
1c3e0e92f4
Add some test failure reporting stuff and fix a bug in test cases ( #45 )
2023-09-23 17:25:41 -04:00
Jeremy Rifkin
3e18bd3c10
Test resolution of more complex types ( #42 )
2023-09-22 10:31:19 -04:00