Fixing generating a signal when running on release mode (#79822)
authorThays Grazia <thaystg@gmail.com>
Tue, 20 Dec 2022 19:28:33 +0000 (16:28 -0300)
committerGitHub <noreply@github.com>
Tue, 20 Dec 2022 19:28:33 +0000 (16:28 -0300)
src/mono/mono/component/debugger-stub.c

index 615383b2a00ea5fb672aac4412f6671b39bb39d4..7304b55809d7ee9733d4a6a6d83b8bea422fc599 100644 (file)
@@ -161,7 +161,8 @@ stub_debugger_end_exception_filter (MonoException *exc, MonoContext *ctx, MonoCo
 static void
 stub_debugger_user_break (void)
 {
-       G_BREAKPOINT ();
+       if (get_mini_debug_options ()->native_debugger_break)
+               G_BREAKPOINT ();
 }
 
 static void