Changeset 743 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/VarList.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/VarList.cpp
r739 r743 7 7 //デバッグ用 8 8 #include "../BasicCompiler_Common/debug.h" 9 #include "../BasicCompiler_Common/DebugSection.h" 9 10 10 11 using namespace ActiveBasic::Compiler; … … 612 613 613 614 //行番号情報 614 extern SourceLines oldSourceLines; 615 for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++){ 616 for(i2=0;i2<(int)oldSourceLines.size()-2;i2++){ 617 if((ULONG_PTR)(oldSourceLines[i2].GetNativeCodePos()+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&& 618 pobj_dti->lplpObp[i3]<=(ULONG_PTR)(oldSourceLines[i2+1].GetNativeCodePos()+ImageBase+MemPos_CodeSection)) break; 619 } 620 if(i2==oldSourceLines.size()-1) pobj_dti->lpdwCp[i3]=-1; 615 for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++) 616 { 617 extern DebugSectionCollection debugSectionCollection; 618 const SourceLines &sourceLines = debugSectionCollection.GetCurrent()._oldSourceLines; 619 620 for( i2=0; i2<static_cast<int>(sourceLines.size()-2); i2++ ) 621 { 622 if((ULONG_PTR)(sourceLines[i2].GetNativeCodePos()+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&& 623 pobj_dti->lplpObp[i3]<=(ULONG_PTR)(sourceLines[i2+1].GetNativeCodePos()+ImageBase+MemPos_CodeSection)) 624 { 625 break; 626 } 627 } 628 if( i2 == sourceLines.size() - 1 ) 629 { 630 pobj_dti->lpdwCp[i3] = -1; 631 } 621 632 else 622 633 { 623 pobj_dti->lpdwCp[i3] =oldSourceLines[i2].GetSourceCodePosition().GetPos();624 pobj_dti->relationalObjectModuleIndexes[i3] =oldSourceLines[i2].GetSourceCodePosition().GetRelationalObjectModuleIndex();634 pobj_dti->lpdwCp[i3] = sourceLines[i2].GetSourceCodePosition().GetPos(); 635 pobj_dti->relationalObjectModuleIndexes[i3] = sourceLines[i2].GetSourceCodePosition().GetRelationalObjectModuleIndex(); 625 636 } 626 637 }
Note:
See TracChangeset
for help on using the changeset viewer.