From 13b2a181e1082a659a97197cabdec524008dcc30 Mon Sep 17 00:00:00 2001 From: monojenkins Date: Mon, 10 Aug 2020 17:18:13 -0400 Subject: [PATCH] =?utf8?q?Fixing=20debugger=20hang=20that=20would=20occur?= =?utf8?q?=20when=20inspecting=20a=20field=20that=20ha=E2=80=A6=20(#40455)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit …s a Debugger.Break in it's accessor. fixes mono/mono#20209 Co-authored-by: UnityAlex --- src/mono/mono/mini/debugger-agent.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mono/mono/mini/debugger-agent.c b/src/mono/mono/mini/debugger-agent.c index 5b6d729..7803326 100644 --- a/src/mono/mono/mini/debugger-agent.c +++ b/src/mono/mono/mini/debugger-agent.c @@ -4027,6 +4027,9 @@ process_event (EventKind event, gpointer arg, gint32 il_offset, MonoContext *ctx DebuggerTlsData *tls; tls = (DebuggerTlsData *)mono_native_tls_get_value (debugger_tls_id); g_assert (tls); + // We are already processing a breakpoint event + if (tls->disable_breakpoints) + return; mono_stopwatch_stop (&tls->step_time); break; } -- 2.7.4