From 4dd9b714a6f5c3dcb0d3415a9b16a28acc209d52 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Fri, 24 Jun 2011 00:23:08 +0200 Subject: [PATCH] Treat CEE_BREAK the same as Debugger:Break (), i.e. route it through sdb. --- mono/mini/method-to-ir.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mono/mini/method-to-ir.c b/mono/mini/method-to-ir.c index dbe945f81f0..b11a4cc4a30 100644 --- a/mono/mini/method-to-ir.c +++ b/mono/mini/method-to-ir.c @@ -6270,10 +6270,11 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b MONO_ADD_INS (bblock, ins); break; case CEE_BREAK: - if (should_insert_brekpoint (cfg->method)) - MONO_INST_NEW (cfg, ins, OP_BREAK); - else + if (should_insert_brekpoint (cfg->method)) { + ins = mono_emit_jit_icall (cfg, mono_debugger_agent_user_break, NULL); + } else { MONO_INST_NEW (cfg, ins, OP_NOP); + } ip++; MONO_ADD_INS (bblock, ins); break; -- 2.11.4.GIT