From 57f2f7f22558755730d3df16a67dc13f5cb8e783 Mon Sep 17 00:00:00 2001 From: Mike McLaughlin Date: Mon, 13 Mar 2017 18:17:43 -0700 Subject: [PATCH] System.Diagnostics.Debugger.Break() should NOT be inlined. (dotnet/coreclr#10151) Breaks debugger tests. Commit migrated from https://github.com/dotnet/coreclr/commit/a195276187c149f52ba9c7fa36a6940693a17a59 --- src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs b/src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs index aad67bc..92df7e7 100644 --- a/src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs +++ b/src/coreclr/src/mscorlib/src/System/Diagnostics/Debugger.cs @@ -30,6 +30,7 @@ namespace System.Diagnostics // Break causes a breakpoint to be signalled to an attached debugger. If no debugger // is attached, the user is asked if he wants to attach a debugger. If yes, then the // debugger is launched. + [MethodImplAttribute(MethodImplOptions.NoInlining)] public static void Break() { // Causing a break is now allowed. -- 2.7.4