kallsyms / warpspeed

macOS Record Replay Debugger
4 stars 0 forks source link

dealing with mach_absolute_time #1

Open kallsyms opened 1 year ago

kallsyms commented 1 year ago

ideally we could use an actual breakpoint to hook lldb_image_notifier, however 1) that's very tangential to the rest of the project and 2) i think dyld can relocate itself which complicates things. for now just ~ab~use dtrace even more and let it manage symbol resolution. pid{}:dyld:lldb_image_notifier:entry {} seems to work even on a fresh process.

pmarkowsky commented 1 year ago

Interposing on libsystem_kernel.dylib seems like the easiest thing here. It's exposed there as libc is the main contract for API stability vs. the kernel.