Ignore:
Timestamp:
Sep 2, 2007, 11:11:40 PM (17 years ago)
Author:
dai_9181
Message:

ステップ実行時の不正終了を回避

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/Debug.cpp

    r288 r313  
    5757    int FileNum;
    5858    const IncludedFilesRelation *pIncludedFilesRelation = NULL;
     59    const BasicSource *pNowSource = NULL;
    5960    BOOST_FOREACH( const BasicSource &source, compiler.GetObjectModule().GetSources() )
    6061    {
     
    6364        for(FileNum=0;FileNum<pIncludedFilesRelation->GetFileCounts();FileNum++)
    6465        {
    65             if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0) break;
     66            if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),szFilePath)==0)
     67            {
     68                pNowSource = &source;
     69                break;
     70            }
    6671        }
    6772        if( FileNum == pIncludedFilesRelation->GetFileCounts() )
     
    110115
    111116loop:
    112             int tempCp;
    113             tempCp=GetCpFromLine(FileBaseLine+i2);
     117            int tempCp = GetSourceCodeIndexFromLine( pNowSource->GetBuffer(), FileBaseLine+i2 );
    114118
    115119            int i3;
Note: See TracChangeset for help on using the changeset viewer.