int 3
calls the debug exception handler. int 3
is similar to a far call
instruction. But it also pushes the eflags
register on the stack before it pushes the return address. The iret
instruction will jump back and pop the eflags
register. 0xcc