Browse Source

fix stepping range

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
e1669016df
  1. 4
      ICSharpCode.Decompiler/CodeMappings.cs

4
ICSharpCode.Decompiler/CodeMappings.cs

@ -38,7 +38,7 @@ namespace ICSharpCode.Decompiler @@ -38,7 +38,7 @@ namespace ICSharpCode.Decompiler
{
int[] result = new int[2];
result[0] = ILInstructionOffset.From;
result[1] = ILInstructionOffset.From + 1 == ILInstructionOffset.To ? ILInstructionOffset.To : ILInstructionOffset.To + 1;
result[1] = ILInstructionOffset.To;
return result;
}
@ -183,7 +183,6 @@ namespace ICSharpCode.Decompiler @@ -183,7 +183,6 @@ namespace ICSharpCode.Decompiler
var mapping = codeMappings[typename].Find(m => m.MetadataToken == token);
if (mapping == null)
continue;
var codeMapping = mapping.MemberCodeMappings.Find(
cm => cm.ILInstructionOffset.From <= ilOffset && ilOffset <= cm.ILInstructionOffset.To - 1);
if (codeMapping == null) {
@ -195,7 +194,6 @@ namespace ICSharpCode.Decompiler @@ -195,7 +194,6 @@ namespace ICSharpCode.Decompiler
}
}
type = mapping.Type;
line = codeMapping.SourceCodeLine;
return true;

Loading…
Cancel
Save