Browse Source

Fixed setting of breakpoints in methods with compiler generated code

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1638 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 19 years ago
parent
commit
bf8f3b55dd
  1. 9
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs

9
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs

@ -213,8 +213,13 @@ namespace Debugger @@ -213,8 +213,13 @@ namespace Debugger
}
// Check that StartLine is within the method
uint start = symMethod.SequencePoints[0].Line;
uint end = symMethod.SequencePoints[symMethod.SequencePointCount - 1].EndLine;
uint start = uint.MaxValue;
uint end = uint.MinValue;
foreach(SequencePoint sqPoint in symMethod.SequencePoints) {
if (sqPoint.Line == 0xFEEFEE) continue;
start = Math.Min(start, sqPoint.Line);
end = Math.Max(end, sqPoint.EndLine);
}
if (StartLine < start || StartLine > end) return false;
function = module.CorModule.GetFunctionFromToken(symMethod.Token);

Loading…
Cancel
Save