Ignore:
Timestamp:
Aug 14, 2007, 8:37:08 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r279 r280  
    576576        }
    577577        if(i2==oldSourceLines.size()-1) pobj_dti->lpdwCp[i3]=-1;
    578         else pobj_dti->lpdwCp[i3]=oldSourceLines[i2].GetSourceCodePos();
     578        else
     579        {
     580            pobj_dti->lpdwCp[i3]=oldSourceLines[i2].GetSourceCodePos();
     581            pobj_dti->lpdwSourceIndex[i3]=oldSourceLines[i2].GetSourceIndex();
     582        }
    579583    }
    580584    for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++){
     
    585589                pobj_dti->lplpSpBase[i2]=pobj_dti->lplpSpBase[i2+1];
    586590                pobj_dti->lpdwCp[i2]=pobj_dti->lpdwCp[i2+1];
     591                pobj_dti->lpdwSourceIndex[i2]=pobj_dti->lpdwSourceIndex[i2+1];
    587592            }
    588593            i3--;
     
    592597
    593598    std::string dummyStr;
    594     if(!compiler.GetObjectModule().source.GetLineInfo( pobj_dti->lpdwCp[pobj_dti->iProcLevel], i2, dummyStr )){
     599    if(!compiler.GetObjectModule().GetSource( pobj_dti->lpdwSourceIndex[pobj_dti->iProcLevel] ).GetLineInfo( pobj_dti->lpdwCp[pobj_dti->iProcLevel], i2, dummyStr )){
    595600        extern HWND hMainDlg;
    596601        //"デバッグ情報の取得に失敗"
     
    674679
    675680                std::string dummyStr;
    676                 compiler.GetObjectModule().source.GetLineInfo( pobj_dti->lpdwCp[pobj_dti->iProcLevel-i2], i3, dummyStr );
     681                compiler.GetObjectModule().GetSource( pobj_dti->lpdwSourceIndex[pobj_dti->iProcLevel] ).GetLineInfo( pobj_dti->lpdwCp[pobj_dti->iProcLevel-i2], i3, dummyStr );
    677682                ShowErrorLine(i3,dummyStr.c_str());
    678683
Note: See TracChangeset for help on using the changeset viewer.