Skip to content

Commit d7619cd

Browse files
[release/6.0-rc1] [debugger] Avoid calling debugger_agent_single_step_from_context when thread is not attached yet (#58480)
* Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1383962 * Fix { Co-authored-by: Thays <[email protected]>
1 parent 0ab2741 commit d7619cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mono/mono/mini/method-to-ir.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6080,6 +6080,14 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
60806080
seq_points = FALSE;
60816081
}
60826082

6083+
if (method->wrapper_type == MONO_WRAPPER_OTHER) {
6084+
WrapperInfo *info = mono_marshal_get_wrapper_info (method);
6085+
if (info->subtype == WRAPPER_SUBTYPE_INTERP_IN) {
6086+
/* We could hit a seq point before attaching to the JIT (#8338) */
6087+
seq_points = FALSE;
6088+
}
6089+
}
6090+
60836091
if (cfg->prof_coverage) {
60846092
if (cfg->compile_aot)
60856093
g_error ("Coverage profiling is not supported with AOT.");

0 commit comments

Comments
 (0)