Userspace debugging
Task-port authorization, task and thread suspension, exception-port ownership, arm64 debug state, and executable-memory updates. These implementation references use the pinned XNU checkout; current SDK declarations remain in the API reference.
Task-port access and authorization
bsd/kern/kern_proc.cTask suspension, resume tokens, and thread enumeration
osfmk/kern/task.cThread suspension, aborts, and state access
osfmk/kern/thread_act.cException-port registration and restoration
osfmk/kern/ipc_tt.carm64 register and debug-state access
osfmk/arm64/status.carm64 debug-register installation
osfmk/arm64/pcb.cDebugger memory operations and cache attributes
osfmk/vm/vm_user.cVM protection, code writes, and target cache traversal
osfmk/vm/vm_map.cPhysical-page instruction-cache synchronization
osfmk/arm/pmap/pmap.cIPC rights and reply-port copyin checks
osfmk/ipc/ipc_right.c