Commit Graph

24 Commits

Author SHA1 Message Date
Jeremy Rifkin
6d62d01496
Improve locking surrounding dbghelp and lock in the dbghelp demangler 2025-02-18 23:34:08 -06:00
Jeremy Rifkin
26ef617c25
Use a raii_wrapper for the char array returned by abi::__cxa_demangle 2025-02-18 19:48:53 -06:00
Jeremy Rifkin
457bc4b8a1
Check external symbols start with _Z before demangling 2025-02-13 23:39:05 -06:00
Jeremy Rifkin
8e7b4a953f
Roll back the cxxabi demangle _Z check 2025-02-02 18:32:15 -06:00
Jeremy Rifkin
1429cfc429
Hopefully final ci fixes 2025-01-28 12:53:40 -06:00
Jeremy Rifkin
247474389f
Allow cpptrace::detail::demangle to demangle strings that have non-identifier characters at the end 2025-01-27 23:57:05 -06:00
Jeremy Rifkin
c5c785db89
Check that names passed to cpptrace::detail::demangle look like mangled names before passing to abi::__cxa_demangle 2025-01-27 23:48:13 -06:00
Pavol Gono
9269a72c54
Fixed compiler warnings and errors under MSYS2+MINGW64 platform. (#186)
Fixed compiler warnings and errors under MSYS2+MINGW64 platform.
2024-10-27 10:30:36 -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
164cc75681
A little refactoring and reorganization. Remove relative includes. 2024-08-18 11:58:49 -05:00
Jeremy
ae5d2392fe
More std:: 2023-10-08 22:48:12 -04:00
Jeremy
799e7a7705
Remove clang-tidy 2023-09-19 15:26:51 -04:00
Jeremy
0620197285
Add winapi demangling 2023-09-19 11:03:45 -04:00
Jeremy
fdbc69e18e
Refactor nested namespaces 2023-09-16 21:19:08 -04:00
Jeremy
cc43a23987
Lint fixes 2023-09-16 20:52:30 -04:00
Jeremy
278ee3fcee
Work on improving error handling and some general refactoring. Also trying to bring everything into cpptrace::detail. 2023-09-16 20:46:30 -04:00
Eczbek
4d04352189
Slightly improve cxxabi demangler for real this time (#34) 2023-09-16 15:04:30 -04:00
Jeremy
b246613045
Thread safety 2023-07-23 17:29:43 -04:00
Jeremy
55b5d8a488
File name refactor 2023-07-23 11:18:43 -04:00
Jeremy Rifkin
04f8b88efd
Some CI and cmake changes (#9) 2023-07-18 22:21:56 -04:00
Jeremy
323aeebe3e
Cleanup and work on fixing test cases 2023-07-04 08:38:58 -04:00
Jeremy
69581c9d58
Rename stuff 2023-07-02 13:37:30 -04:00
Jeremy Rifkin
99a54e3597
Build work (#1) 2023-07-01 22:14:05 -04:00
Jeremy
b3474b50c3
Initial commit 2023-07-01 17:06:41 -04:00