Changeset 743 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/Debug.cpp
- Timestamp:
- Sep 7, 2008, 12:38:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/Debug.cpp
r741 r743 114 114 } 115 115 116 if(i2==iLineNum){ 117 extern SourceLines oldSourceLines; 118 116 if(i2==iLineNum) 117 { 119 118 loop: 120 119 int tempCp = GetSourceCodeIndexFromLine( pNowSource->GetBuffer(), FileBaseLine+i2 ); 121 120 121 const SourceLines &sourceLines = debugSectionCollection.GetCurrent()._oldSourceLines; 122 122 123 int i3; 123 for(i3=0;i3<(int)oldSourceLines.size()-1;i3++){ 124 if(oldSourceLines[i3].GetSourceCodePosition().GetPos()==tempCp) break; 125 } 126 if(i3==oldSourceLines.size()-1){ 124 for( i3=0; i3<static_cast<int>(sourceLines.size()-1); i3++ ) 125 { 126 if( sourceLines[i3].GetSourceCodePosition().GetPos() == tempCp ) 127 { 128 break; 129 } 130 } 131 if( i3 == sourceLines.size() - 1 ) 132 { 127 133 i2--; 128 134 goto loop; 129 135 } 130 136 131 StepCursorObpSchedule =oldSourceLines[i3].GetNativeCodePos();137 StepCursorObpSchedule = sourceLines[i3].GetNativeCodePos(); 132 138 StepCursor_BackupChar=debugSectionCollection.GetCurrent().BreakStepCodeBuffer[StepCursorObpSchedule]; 133 139
Note:
See TracChangeset
for help on using the changeset viewer.