Fixes #614: Implement a debug trap;

This commit is contained in:
Benjamin Bouvier
2018-12-05 17:30:22 +01:00
committed by Dan Gohman
parent f065b39d65
commit 93696a80bb
4 changed files with 17 additions and 0 deletions

View File

@@ -784,6 +784,9 @@ ebb1:
; asm: jnbe .+4; ud2
trapif ule v11, user0 ; bin: 77 02 user0 0f 0b
; Debug trap.
debugtrap ; bin: cc
; Stack check.
; asm: cmpq %rsp, %rcx
[-,%rflags] v40 = ifcmp_sp v1 ; bin: 48 39 e1