* src/vm/breakpoint.hpp: Added header file for breakpoint handling.
[cacao.git] / src / vm / jit / codegen-common.cpp
index 9920715b1c8d52b982c87f1cebc4db25c39afada..62ee9aecdda1f8cf582f5c8535bd9e4c2f00ab78 100644 (file)
@@ -1250,6 +1250,13 @@ bool codegen_emit(jitdata *jd)
                                emit_nullpointer_check(cd, iptr, s1);
                                break;
 
+                       case ICMD_BREAKPOINT: /* ...  ==> ...                             */
+                                             /* sx.val.anyptr = Breakpoint               */
+
+                               patcher_add_patch_ref(jd, PATCHER_breakpoint, iptr->sx.val.anyptr, 0);
+                               PATCHER_NOPS;
+                               break;
+
 #if defined(ENABLE_SSA)
                        case ICMD_GETEXCEPTION: