Permalink
Browse files

при сравнении на совпадение строки следующей операции, добавлена пров…

…ерка на совпадение исходного файла.
  • Loading branch information...
1 parent 249d19b commit 9318d45f850610bbaf8eb891805087840207a7a4 @Slav76 Slav76 committed Oct 23, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 Debugger.Core/Src/Threads/Function.cs
@@ -313,7 +313,7 @@ public SourcecodeSegment GetSegmentForOffet(uint offset)
for (int j = 0; j < sequencePointCount; j++) {
// Step over compiler generated sequences and current statement
// 0xFeeFee means "code generated by compiler"
- if (sequencePoints[j].Line == 0xFeeFee || j == i || ( j > i && sequencePoints[j].Line == sequencePoints[i].Line)) {
+ if (sequencePoints[j].Line == 0xFeeFee || j == i || ( j > i && (sequencePoints[j].Line == sequencePoints[i].Line && sequencePoints[i].Document.URL == sequencePoints[j].Document.URL))) { // line + document must be same
// Add start offset or remove last end (to connect two ranges into one)
if (stepRanges.Count > 0 && stepRanges[stepRanges.Count - 1] == sequencePoints[j].Offset) {
stepRanges.RemoveAt(stepRanges.Count - 1);

0 comments on commit 9318d45

Please sign in to comment.