Jeremy Rifkin
c37b5ed736
Bump to v0.8.2
2025-02-23 14:03:25 -06:00
Jeremy Rifkin
1940dc607a
Bump to v0.8.1
2025-02-20 22:46:25 -06:00
Jeremy Rifkin
34ea9572b8
Bump to v0.8.0
2025-02-19 23:31:36 -06:00
Jeremy Rifkin
6d62d01496
Improve locking surrounding dbghelp and lock in the dbghelp demangler
2025-02-18 23:34:08 -06:00
Jeremy Rifkin
aed47df73e
Slightly improve memory usage by packing some structs used in the die cache
2025-02-17 22:18:15 -06:00
Jeremy Rifkin
1d79dbcf42
Add a configurable cache size for the line tables cache, related to #193
2025-02-17 19:10:46 -06:00
Jeremy Rifkin
b724d1328c
Add very basic dwarfdump tool
2025-02-02 19:28:01 -06:00
Jeremy Rifkin
e2b1252438
A new formatting setup ( #208 )
...
Resolves #164
2025-02-01 17:31:49 -06:00
Jeremy Rifkin
f16c36e0b6
Do a unit test without debug symbols
2025-01-28 00:48:38 -06:00
Jeremy Rifkin
6689d14c20
Bump to v0.7.5
2025-01-04 23:45:49 -06:00
Jeremy Rifkin
5b3f2fb0b1
Bump to v0.7.4
2024-12-21 16:13:10 -06:00
Jeremy Rifkin
43b0ed1b21
Add version macros header
2024-12-21 15:41:13 -06:00
Jeremy Rifkin
4354eb21ea
Bump to v0.7.3
2024-11-15 17:42:37 -06:00
Jeremy Rifkin
d43318aa92
Add cmake export set, fixes #189
2024-11-15 17:14:08 -06:00
Jeremy Rifkin
04b85a0dfa
Refactor auto-config logic out of the main CMakeLists.txt
2024-11-03 18:42:36 -06:00
mhx
124dba5254
fix: actually use ccache binary returned by find_program ( #184 )
...
The original code assumed that if `find_program` found `ccache`, then
`ccache` must be in the `PATH`. However, `find_program` searches in a
lot of different places. This can lead to situations where `ccache` is
found, but the compile will fail because it's not in the path.
This change also uses `CMAKE_XXX_COMPILER_LAUNCHER` instead of
`RULE_LAUNCH_COMPILE`, as the latter is for internal use only per the
CMake docs.
2024-10-20 23:54:50 -05:00
Jeremy Rifkin
e89eb61a5f
Bump to v0.7.2
2024-10-06 16:17:36 -05:00
Jeremy Rifkin
4c59e73a01
Split up cpptrace.hpp
2024-10-05 18:01:12 -05:00
Sofie
7b2a994559
fix: mangled url for FetchContent in cmake 3.16 ( #176 )
...
Fixes #174
Seems to be that older versions of CMake has a tendency to mangle URLs
as per described in https://stackoverflow.com/questions/74996365/
2024-10-02 20:18:16 -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
4ed90c1585
Switch away from FetchContent_Populated, #171
2024-09-13 00:42:17 -05:00
Jeremy Rifkin
d09378c8e8
Use execinfo.h by default for clang/apple clang on macos, #161
2024-09-12 23:56:09 -05:00
Jeremy Rifkin
7fdbbfdf67
Fix compilation on ios ( #167 )
...
This aims to address #163
2024-09-04 17:22:32 -05:00
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
0742b42dad
Update changelog and bump to v0.7.0
2024-08-21 08:47:23 -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
Jeremy Rifkin
3e131ce8c6
Experiment with some benchmarking
2024-08-18 18:59:50 -05:00
Jeremy Rifkin
164cc75681
A little refactoring and reorganization. Remove relative includes.
2024-08-18 11:58:49 -05:00
Jeremy Rifkin
26e009c688
Add cpptrace::from_current ( #155 )
2024-08-18 11:11:47 -05:00
Jeremy
90de25f1df
Bump to v0.6.3
2024-07-13 23:16:13 -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 Rifkin
7497bf2a6f
Unit test more thoroughly and rework matrix ci system ( #147 )
2024-07-12 00:59:22 -05:00
Jeremy
ea566778fc
Bump to v0.6.2
2024-06-19 20:41:34 -05:00
Jeremy
7543677d6f
Bump to v0.6.1
2024-06-11 22:36:32 -05:00
Jeremy
4456623391
Fix dladdr1 and dl_find_object tests
2024-06-11 22:22:52 -05:00
Jeremy
06226ee2aa
Bump to 0.6.0
2024-05-28 22:23:48 -05:00
Jeremy
1ab65a2040
Remove /Wx from msvc outside of a werror build
2024-05-28 21:55:38 -05:00
Jeremy
9d1c592f0c
Remove CPPTRACE_CONDA_LIBDWARF_WEIRDNESS bodge and better support libdwarf via pkgconfig, resolves #131
2024-05-28 21:32:54 -05:00
Jeremy
810b74ecaa
Refactor symbols_with_libdwarf indo separate files
2024-05-25 14:29:55 -05:00
Jeremy
583c0efdb3
Undo ee6787f0ed which pointed to a non-release libdwarf commit
2024-05-25 00:43:48 -05:00
Jeremy
7916f10278
Attempt to fallback to dladdr if dladdr1 is not available
2024-05-24 23:04:20 -05:00
Jeremy
470b0c8eb0
Only use -Wpedantic during a -Werror build
2024-05-23 22:28:02 -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
32275cd679
Quick patch for when LIBUNWIND_LDFLAGS isn't set
2024-05-21 22:40:47 -05:00
Jeremy
10e7a5e442
Fix again
2024-05-15 20:00:53 -05:00
Jeremy
2172164478
Unbreak dev
2024-05-15 19:44:26 -05:00
Jeremy
2e1f14c7de
Add a warning flag
2024-05-12 22:02:34 -05:00
Jeremy
ee6787f0ed
Update dev to point at latest libdwarf dev commit with a pe heuristic fix
2024-05-10 12:06:56 -05:00
Jeremy
b1e3179a97
A couple quick fixes
2024-05-05 17:51:50 -05:00