Browse Source

DebuggerHidden attribute marks code as non-user code

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3159 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 17 years ago
parent
commit
73a9a6552e
  1. 3
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Module.cs

3
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Control/Module.cs

@ -187,7 +187,8 @@ namespace Debugger
MemberRefProps constructorMethod = metaData.GetMemberRefProps(ca.Type); MemberRefProps constructorMethod = metaData.GetMemberRefProps(ca.Type);
TypeRefProps attributeType = metaData.GetTypeRefProps(constructorMethod.DeclaringType); TypeRefProps attributeType = metaData.GetTypeRefProps(constructorMethod.DeclaringType);
if (attributeType.Name == "System.Diagnostics.DebuggerStepThroughAttribute" || if (attributeType.Name == "System.Diagnostics.DebuggerStepThroughAttribute" ||
attributeType.Name == "System.Diagnostics.DebuggerNonUserCodeAttribute") attributeType.Name == "System.Diagnostics.DebuggerNonUserCodeAttribute" ||
attributeType.Name == "System.Diagnostics.DebuggerHiddenAttribute")
{ {
if (ca.Owner >> 24 == 0x02) { // TypeDef if (ca.Owner >> 24 == 0x02) { // TypeDef
ICorDebugClass2 corClass = corModule.GetClassFromToken(ca.Owner).CastTo<ICorDebugClass2>(); ICorDebugClass2 corClass = corModule.GetClassFromToken(ca.Owner).CastTo<ICorDebugClass2>();

Loading…
Cancel
Save