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/BreakPoint.cpp

    r280 r313  
    4848    int FileNum;
    4949    const IncludedFilesRelation *pIncludedFilesRelation = NULL;
     50    const BasicSource *pNowSource = NULL;
    5051    BOOST_FOREACH( const BasicSource &source, compiler.GetObjectModule().GetSources() )
    5152    {
     
    5455        for(FileNum=0;FileNum<pIncludedFilesRelation->GetFileCounts();FileNum++)
    5556        {
    56             if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),lpszFileName)==0) break;
     57            if(lstrcmpi(pIncludedFilesRelation->GetFilePathFromFileNumber(FileNum).c_str(),lpszFileName)==0)
     58            {
     59                pNowSource = &source;
     60                break;
     61            }
    5762        }
    5863        if( FileNum == pIncludedFilesRelation->GetFileCounts() )
     
    100105
    101106loop:
    102             int tempCp;
    103             tempCp=GetCpFromLine(FileBaseLine+i2);
     107            int tempCp = GetSourceCodeIndexFromLine( pNowSource->GetBuffer(), FileBaseLine+i2 );
    104108
    105109            int i3;
Note: See TracChangeset for help on using the changeset viewer.