Ignore:
Timestamp:
Aug 5, 2007, 3:47:49 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r259 r263  
    7979
    8080        if(i2==iLineNum){
    81             extern int MaxLineInfoNum;
    82             extern LINEINFO *pLineInfo;
     81            extern SourceLines oldSourceLines;
    8382
    8483loop:
     
    8786
    8887            int i3;
    89             for(i3=0;i3<MaxLineInfoNum-1;i3++){
    90                 if(pLineInfo[i3].TopCp==tempCp) break;
    91             }
    92             if(i3==MaxLineInfoNum-1){
     88            for(i3=0;i3<(int)oldSourceLines.size()-1;i3++){
     89                if(oldSourceLines[i3].GetSourceCodePos()==tempCp) break;
     90            }
     91            if(i3==oldSourceLines.size()-1){
    9392                i2--;
    9493                goto loop;
    9594            }
    9695
    97             StepCursorObpSchedule=pLineInfo[i3].TopObp;
     96            StepCursorObpSchedule=oldSourceLines[i3].GetNativeCodePos();
    9897            StepCursor_BackupChar=pobj_DBDebugSection->pobj_now->BreakStepCodeBuffer[StepCursorObpSchedule];
    9998
Note: See TracChangeset for help on using the changeset viewer.