LLDB dev working on Darwin debugging recommends using CFI instead of trapframe sniffer callbacks. CFI directives itself doesn't any effects in actual code, but I splitted fork_trampoline() into fork_trampoline() and fork_trampoline_kthread() as CFI cannot express conditionals like PC equals to zero.
MFC after: 2 weeks
MFC to: stable/14, stable/15
Sponsored by: FreeBSD Foundation