From e1669016df604807a352bdabe4c89f796b083491 Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Sat, 12 Mar 2011 00:05:46 +0200 Subject: [PATCH] fix stepping range --- ICSharpCode.Decompiler/CodeMappings.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/CodeMappings.cs b/ICSharpCode.Decompiler/CodeMappings.cs index 58b9768b6..d5535a900 100644 --- a/ICSharpCode.Decompiler/CodeMappings.cs +++ b/ICSharpCode.Decompiler/CodeMappings.cs @@ -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 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 } } - type = mapping.Type; line = codeMapping.SourceCodeLine; return true;