[release/6.0-rc1] [debugger] Avoid calling debugger_agent_single_step_from_context...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 1 Sep 2021 17:08:38 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Sep 2021 17:08:38 +0000 (10:08 -0700)
* Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1383962

* Fix {

Co-authored-by: Thays <thaystg@gmail.com>
src/mono/mono/mini/method-to-ir.c

index 96ac001..151b9db 100644 (file)
@@ -6080,6 +6080,14 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                seq_points = FALSE;
        }
 
+       if (method->wrapper_type == MONO_WRAPPER_OTHER) {
+               WrapperInfo *info = mono_marshal_get_wrapper_info (method);
+               if (info->subtype == WRAPPER_SUBTYPE_INTERP_IN) {
+                       /* We could hit a seq point before attaching to the JIT (#8338) */
+                       seq_points = FALSE;
+               }
+       }
+
        if (cfg->prof_coverage) {
                if (cfg->compile_aot)
                        g_error ("Coverage profiling is not supported with AOT.");