Commit Graph

524 Commits

Author SHA1 Message Date
Jeremy
a3ebd42802
A couple fixes 2024-03-30 23:35:50 -05:00
Jeremy
d8b9f45a24
Merge branch 'dev' into jr/more-thorough-error-handling 2024-03-30 23:26:58 -05:00
Jeremy
4db73b1856
Fix assertion failure format string 2024-03-30 23:19:13 -05:00
Jeremy
50483783cb
Fix bug with non-recursive inline walking 2024-03-30 23:18:55 -05:00
Jeremy
ab63c34827
Replace most stream use with new formatting system 2024-03-30 20:25:06 -05:00
Jeremy
35e555ae39
Error handling in dwarf stuff 2024-03-30 18:32:51 -05:00
Jeremy
4c5d4a5ee4
Remove file_error and duplicate nodiscard 2024-03-30 14:34:44 -05:00
Jeremy
530954e69f
Merge branch 'dev' into jr/more-thorough-error-handling 2024-03-30 14:32:23 -05:00
Jeremy Rifkin
acaa4f42e6
Add a Result type and replace some exceptions with it (#109) 2024-03-30 13:35:52 -05:00
Jeremy
89a7afaded
Merge branch 'dev' into jr/more-thorough-error-handling 2024-03-30 13:25:27 -05:00
Jeremy
47e7ee79eb
Formatting update 2024-03-30 11:11:07 -05:00
Jeremy
fa6155ff47
Remove awful stringf system 2024-03-29 23:12:26 -05:00
Jeremy
a3899781dc
Try to fix ci 2024-03-29 22:50:30 -05:00
Jeremy
e65edcf91a
Make note about -DCPPTRACE_STATIC_DEFINE more prominent 2024-03-28 19:51:53 -05:00
Jeremy
b72164b39b
Bump to v0.5.1 2024-03-20 22:12:26 -05:00
Jeremy
411fdff8fa
Merge branch 'dev' 2024-03-20 22:08:33 -05:00
Jeremy
d1199dc325
Fix potential null dereference issue, thanks @eyalgolan1337. Resolves #106. 2024-03-20 22:08:21 -05:00
Jeremy
8f8e1e34e2
Re-add CE button on readme 2024-03-19 22:59:50 -05:00
Billy O'Neal
37e6cef4f9
Defend against min and max macros from windows.h (#105)
Alternative to
https://github.com/microsoft/vcpkg/pull/37512/files#diff-9f533b43a5faabaa6b5a0e046f0ae425cd85736808604dd61dc9a955db3d060aR9

I left the examples in mach-o.hpp as they are guarded by #if IS_APPLE
2024-03-18 23:03:26 -05:00
Jeremy
2985cb1d6c
Merge branch 'main' into dev 2024-03-16 23:31:57 -05:00
Jeremy
fdf4499259
Update docs to showcase source code snippets 2024-03-16 23:31:07 -05:00
Jeremy
c5138e2f40
Add nominmax for windows.h 2024-03-16 19:34:16 -05:00
Jeremy
a841a1b74a
Fix msvc warning treated as error 2024-03-16 19:23:03 -05:00
Jeremy
9b69d200c1
Bump to v0.5.0 2024-03-16 18:03:34 -05:00
Jeremy
8407adf6d3
Add print_with_snippets to docs 2024-03-16 17:52:38 -05:00
Jeremy
a528aa8e0b
Fix object address resolution with _dl_find_object, #104 2024-03-16 16:17:27 -05:00
Jeremy
92be6c23f1
Update note about debug symbols being needed 2024-03-15 17:39:23 -05:00
Jeremy
6a8ff75fc1
Merge branch 'main' into dev 2024-03-09 22:26:17 -06:00
Jeremy
c35392d20b
Fix comment 2024-03-09 22:25:51 -06:00
Jeremy
754c588464
Disable CE button temporarily 2024-03-09 22:25:04 -06:00
Jeremy
3e0689a5e6
Resolve object address for dbghelp frames by default, handles #100 2024-03-09 22:15:41 -06:00
Jeremy
91a719e534
Use internal_error over std:: errors 2024-03-09 21:50:49 -06:00
Jeremy
e80a11d730
Logic for PE, and a couple tweaks 2024-03-09 21:25:57 -06:00
Jeremy
f135232933
First pass at using Result in mach-o logic 2024-03-09 21:10:14 -06:00
Jeremy
f0bedd4104
Try error handling with a Result type 2024-03-09 17:48:09 -06:00
Jeremy
8d6326da07
Update locking in dbghelp_syminit_manager 2024-03-08 17:39:08 -06:00
Jeremy
c896d70f79
Small reorganization 2024-03-05 17:47:55 -06:00
Adrien Cassagne
d8e23c1e93
Add 'POSITION_INDEPENDENT_CODE ON' (also known as '-fPIE'). (#99)
First thx for these very useful lib!

I encountered some issues when linking with `libcpptrace`. Typically,
here is the error I got:
```
/usr/bin/ld: lib/cpptrace/lib/libcpptrace.a(cpptrace.cpp.o): relocation R_X86_64_32S against symbol `_ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' can not be used when making a PIE object; recompile with -fPIE
```
I just added the `POSITION_INDEPENDENT_CODE ON` flag on the targets, and
now it works like a charm :-).
2024-03-05 08:57:04 -06:00
Jeremy
3054b3bebd
Add tmp to gitignore 2024-03-03 14:37:14 -06:00
Jeremy
da739d30c5
Add can_signal_safe_unwind and update some documentation surrounding signal-safe stack tracing 2024-03-03 12:15:27 -06:00
Jeremy
ec264aa0eb
Cleanup and improve snippet code a bit 2024-03-03 11:49:15 -06:00
Jeremy
862b546532
Update margin handling 2024-03-03 11:34:09 -06:00
Jeremy
9da2b3f556
Refactor object.hpp, separate out module base logic which greatly cleans things up 2024-03-03 11:31:06 -06:00
Jeremy
f11e119d32
Refactor stacktrace conversion code 2024-03-03 10:54:23 -06:00
Jeremy
389f788b57
Add get_object_info method to stacktrace frames, adding onto the previous work for #97 2024-03-03 10:54:03 -06:00
Jeremy
123e7df4f4
Mention CPPTRACE_STATIC_DEFINE for non-cmake instructions 2024-02-28 23:32:48 -06:00
Jeremy
42a91af570
Remove some completed features from the todo list 2024-02-28 23:30:45 -06:00
Jeremy Rifkin
d99f1745d2
Basic source code snippet system (#98) 2024-02-28 23:29:24 -06:00
Jeremy
736643358b
Implement a non-recursive get_inlines_info 2024-02-28 22:30:47 -06:00
Jeremy
055e0d94cf
Use ccache if possible, at top-level 2024-02-28 22:09:54 -06:00