Jeremy
22b326ba7e
Small optimization, doesn't really matter but doesn't hurt
2024-02-11 22:22:29 -06:00
Jeremy
e6627b760d
Implement better logic for handling scrfile indices, related to #86
2024-02-11 21:02:48 -06:00
Jeremy
cb92c9fdfa
Small optimization to reduce unnecessary frame copying
2024-02-11 15:59:56 -06:00
Jeremy
36a16df075
Handle an edge case with dwarf file indices, identified in #86
2024-02-11 15:25:18 -06:00
Jeremy
9a7c45bda7
remove return that wasn't needed
2024-02-11 02:05:00 -06:00
Jeremy
cdaab64be2
Revert "Printbug"
...
This reverts commit 2e9c586ba7 .
2024-02-11 01:58:29 -06:00
Jeremy
612d5e6d65
Fix architecture handling in load_mach
2024-02-11 01:53:57 -06:00
Jeremy
2e9c586ba7
Printbug
2024-02-11 01:49:46 -06:00
Jeremy
37630f479d
Try to make fat mach architecture handling more robust
2024-02-08 00:38:56 -06:00
Jeremy
59272bccd6
printbug...
2024-02-07 22:37:55 -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
8f9e8c5c1b
Some formatting consistency tweaks
2024-02-04 13:58:57 -06:00
Jeremy
a3e3916daa
Fix issue with trying to call detail::enable_virtual_terminal_processing_if_needed unconditionally on print
2024-02-04 13:56:46 -06:00
Jeremy
ab2d440a00
Update cpptrace exceptions to defer trace generation to the callsite with a default argument
2024-02-04 13:40:12 -06:00
Jeremy
2f7f5107a5
Add ctrace interface for enable_inlined_call_resolution
2024-02-04 11:10:37 -06:00
Jeremy
d7aac52f8b
Add configuration to control resolution of inlined calls
2024-02-04 11:03:03 -06:00
Jeremy
b8c66cd855
Remove old comment
2024-01-29 22:29:35 -06:00
Jeremy Rifkin
79931c8823
Parsing of mach-o symbol tables, generation of debug maps, and resolution through object files ( #82 )
2024-01-29 22:12:59 -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
cfdd311e15
Fix warning for gcc on windows
2024-01-14 23:51:41 -06:00
Jeremy Rifkin
a654f2082e
Mach-o refactoring ( #77 )
...
This is the first step towards a more comprehensive mach-o system. Next
step will be to add support for symbol table parsing.
2024-01-14 23:36:30 -06:00
Jeremy
e8c857d6c2
Small tweak for a couple aggregate initializations
2024-01-14 22:27:25 -06:00
Jeremy
2100723312
Another attempt to resolve libdwarf header issues
2024-01-14 19:56:11 -06:00
Jeremy
3e46d2a570
Fix typo
2024-01-14 18:05:31 -06:00
Jeremy
399e52f460
Try again to fix libdwarf #includes
2024-01-14 15:23:02 -06:00
Jeremy
ca76080968
Updates to better support external libdwarf, because nothing about how libdwarf's cmake is setup is consistent
2024-01-13 01:31:10 -06:00
Jeremy
e8fd01bbe1
Fallback to the cu cache or walking cu's if aranges lookup fails
2023-12-06 00:21:44 -05:00
Jeremy
56b50d279a
Update msvc bug workaround to not produce build warnings
2023-12-04 11:30:37 -05:00
Jeremy
6db9794dc6
Workaround a msvc bug affecting msvc 19.38
2023-12-03 21:33:31 -05:00
Jeremy
3a0db500d0
Fixes
2023-11-21 21:32:42 -06:00
Jeremy
64a60f227d
Resolve a couple compilation warnings
2023-11-21 12:11:16 -06:00
Jeremy
e889fa7acf
Use dlfo_link_map->l_addr over dlfo_map_start
2023-11-21 09:41:56 -06:00
Jeremy
0ee29d0855
Use CPPTRACE_PATH_MAX more consistently, and another small refactor
2023-11-20 23:37:49 -06:00
Jeremy
87cd24438b
Use _dl_find_object over dladdr when possible in object resolution, it's so much faster
2023-11-20 23:36:55 -06:00
Jeremy
9113cc5ffc
Some refactoring, bring object_frame in line with safe_object_frame. Also renamed address_relative_to_object_base_in_memory.
2023-11-20 23:13:21 -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
7c49e64ba6
Updated documentation, added documentation for new stuff, and updated cpptrace.hpp a bit
2023-11-20 22:14:13 -06:00
Jeremy
6c6d915414
Removed raw_trace::from_buffer, not happy with that api
2023-11-19 23:45:51 -06:00
Jeremy
0b48df7f22
Fix windows build warning
2023-11-19 23:20:31 -06:00
Jeremy
24e64ab385
Check for _dl_find_object support
2023-11-19 23:17:11 -06:00
Jeremy
ac7db48cef
Really fix it this time
2023-11-19 23:07:41 -06:00
Jeremy
f4237c75df
Try to fix build
2023-11-19 22:54:08 -06:00
Jeremy
16ec7c5855
Fix oversight, demangle in object_trace resolution
2023-11-19 22:52:43 -06:00
Jeremy
ac13e71877
Implement signal-safe resolution of basic object information
2023-11-19 22:49:58 -06:00
Jeremy
327a6e8318
Fix two more includes
2023-11-18 23:42:49 -06:00
Jeremy
88319b13a7
Turns out one of the includes was needed
2023-11-18 23:39:59 -06:00
Jeremy
6da8ee0773
Fix a couple includes
2023-11-18 23:38:03 -06:00
Jeremy
5657a07ed4
Remove some no longer needed includes
2023-11-18 23:35:43 -06:00
Jeremy
0e462c7b03
Some restructuring of the directory layout
2023-11-18 23:28:48 -06:00