Changeset 279 in dev for trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
- Timestamp:
- Aug 14, 2007, 3:22:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/BreakPoint.cpp
r266 r279 45 45 46 46 void CFileBreakPoint::update(char *nativeCodeBuffer){ 47 extern INCLUDEFILEINFO IncludeFileInfo;48 49 47 int FileNum; 50 for(FileNum=0;FileNum< IncludeFileInfo.FilesNum;FileNum++){51 if(lstrcmpi( IncludeFileInfo.ppFileNames[FileNum],lpszFileName)==0) break;48 for(FileNum=0;FileNum<compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileCounts();FileNum++){ 49 if(lstrcmpi(compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFilePathFromFileNumber(FileNum).c_str(),lpszFileName)==0) break; 52 50 } 53 if(FileNum==IncludeFileInfo.FilesNum) return; 51 if( FileNum == compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileCounts() ) 52 { 53 return; 54 } 54 55 55 56 int i; 56 57 for(i=0;;i++){ 57 if(IncludeFileInfo.LineOfFile[i]==FileNum|| 58 IncludeFileInfo.LineOfFile[i]==-1) break; 58 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == FileNum 59 || compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 ) 60 { 61 break; 62 } 59 63 } 60 if(IncludeFileInfo.LineOfFile[i]==-1) return; 64 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( i ) == -1 ) 65 { 66 return; 67 } 61 68 62 69 int FileBaseLine; … … 65 72 int i2,nCount=0; 66 73 for(i2=0;;i2++){ 67 if(IncludeFileInfo.LineOfFile[FileBaseLine+i2]==-1){ 74 if( compiler.GetObjectModule().source.GetIncludedFilesRelation().GetFileNumber( FileBaseLine+i2 ) == -1 ) 75 { 68 76 //ソースコードの終端行 69 77 break;
Note:
See TracChangeset
for help on using the changeset viewer.