Skip to content

Commit

Permalink
при сравнении на совпадение строки следующей операции, добавлена пров…
Browse files Browse the repository at this point in the history
…ерка на совпадение исходного файла.
  • Loading branch information
Slav76 committed Oct 23, 2015
1 parent 249d19b commit 9318d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Debugger.Core/Src/Threads/Function.cs
Expand Up @@ -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);
Expand Down

0 comments on commit 9318d45

Please sign in to comment.