Changeset 65 for trunk/UTarget.pas
- Timestamp:
- Dec 5, 2014, 8:34:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTarget.pas
r64 r65 32 32 function SearchByTargetPos(Pos: Integer): TDebugStep; 33 33 procedure AddStep(SourcePos, TargetPos: Integer; Operation: TStepOperation); 34 procedure UpdateTargetPos(Old, New: Integer); 34 35 end; 35 36 … … 271 272 end; 272 273 274 procedure TDebugStepList.UpdateTargetPos(Old, New: Integer); 275 var 276 I: Integer; 277 begin 278 I := 0; 279 while (I < Count) do begin 280 if TDebugStep(Items[I]).TargetPosition = Old then 281 TDebugStep(Items[I]).TargetPosition := New; 282 Inc(I); 283 end; 284 end; 285 273 286 274 287 { TTargetList } … … 594 607 end; 595 608 end; 609 DebugSteps.UpdateTargetPos(FProgramIndex, NewProgramIndex); 596 610 Inc(FProgramIndex); 597 611 Inc(NewProgramIndex); … … 734 748 end; 735 749 PreviousCommand := FProgram[FProgramIndex].Command; 750 DebugSteps.UpdateTargetPos(FProgramIndex, NewProgramIndex); 736 751 Inc(FProgramIndex); 737 752 Inc(NewProgramIndex);
Note:
See TracChangeset
for help on using the changeset viewer.