Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit brk #0xf000 for breakpoint opcode on arm64 (#267)
Implement SLJIT_BREAKPOINT with the same instruction emitted by MSVC for the __debugbreak intrinsic (brk #0xf000) and by Clang for __builtin_debugtrap. On Windows, this triggers a breakpoint exception just as int3 does on x86. The previously emitted instruction (brk #0) triggers an illegal instruction exception instead. LLDB also has special handling for this brk variant on Windows and macOS, automatically advancing to the next instruction so execution can be easily continued.
- Loading branch information