Skip to content

Commit

Permalink
[release/6.0-rc1] [debugger] Avoid calling debugger_agent_single_step…
Browse files Browse the repository at this point in the history
…_from_context when thread is not attached yet (dotnet#58480)

* Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1383962

* Fix {

Co-authored-by: Thays <[email protected]>
  • Loading branch information
github-actions[bot] and thaystg authored Sep 1, 2021
1 parent 0ab2741 commit d7619cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mono/mono/mini/method-to-ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit d7619cd

Please sign in to comment.