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

    r256 r263  
    33#include <jenga/include/common/Environment.h>
    44#include <jenga/include/smoothie/Source.h>
     5
     6#include <Compiler.h>
    57
    68#include "common.h"
     
    6971
    7072        if(i2==piLine[nCount]){
    71             extern int MaxLineInfoNum;
    72             extern LINEINFO *pLineInfo;
     73            extern SourceLines oldSourceLines;
    7374
    7475loop:
     
    7778
    7879            int i3;
    79             for(i3=0;i3<MaxLineInfoNum-1;i3++){
    80                 if(pLineInfo[i3].TopCp==tempCp) break;
     80            for(i3=0;i3<(int)oldSourceLines.size()-1;i3++){
     81                if(oldSourceLines[i3].GetSourceCodePos()==tempCp) break;
    8182            }
    82             if(i3==MaxLineInfoNum-1){
     83            if(i3==oldSourceLines.size()-1){
    8384                i2--;
    8485                goto loop;
    8586            }
    8687
    87             nativeCodeBuffer[pLineInfo[i3].TopObp]=(char)0xCC;
     88            nativeCodeBuffer[oldSourceLines[i3].GetNativeCodePos()]=(char)0xCC;
    8889
    8990            nCount++;
Note: See TracChangeset for help on using the changeset viewer.