-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove debug only attributes when Debugger.IsSupported is false. (#39237
) * Remove debug only attributes when Debugger.IsSupported is false. Contributes to dotnet/linker#1093 * Move debug only attributes to shared CoreLib.
- Loading branch information
Showing
4 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
src/libraries/System.Private.CoreLib/src/ILLink/ILLink.LinkAttributes.Shared.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<linker> | ||
<!-- The following attributes are only necessary when debugging is supported --> | ||
<assembly fullname="System.Private.CoreLib" feature="System.Diagnostics.Debugger.IsSupported" featurevalue="false"> | ||
<!-- Debugger specific attributes --> | ||
<type fullname="System.Diagnostics.DebuggableAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerBrowsableAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerDisplayAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerHiddenAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerNonUserCodeAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerStepperBoundaryAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerStepThroughAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerTypeProxyAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Diagnostics.DebuggerVisualizerAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
|
||
<!-- Attributes used during pretty stack trace printing --> | ||
<type fullname="System.Diagnostics.StackTraceHiddenAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
<type fullname="System.Runtime.CompilerServices.CompilerGeneratedAttribute"> | ||
<attribute internal="RemoveAttributeInstances" /> | ||
</type> | ||
</assembly> | ||
</linker> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters