diff options
author | Mike McLaughlin <mikem@microsoft.com> | 2017-03-13 18:17:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 18:17:43 -0700 |
commit | a195276187c149f52ba9c7fa36a6940693a17a59 (patch) | |
tree | 247b128a5fef0f246702aece7d336f89f286b6f6 /src | |
parent | b23d6a2c2decb9f3cfebc04483557138096dfdd0 (diff) | |
download | coreclr-a195276187c149f52ba9c7fa36a6940693a17a59.tar.gz coreclr-a195276187c149f52ba9c7fa36a6940693a17a59.tar.bz2 coreclr-a195276187c149f52ba9c7fa36a6940693a17a59.zip |
System.Diagnostics.Debugger.Break() should NOT be inlined. (#10151)
Breaks debugger tests.
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/Debugger.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/Debugger.cs b/src/mscorlib/src/System/Diagnostics/Debugger.cs index aad67bc197..92df7e7f5f 100644 --- a/src/mscorlib/src/System/Diagnostics/Debugger.cs +++ b/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. |