Ignore:
Timestamp:
Sep 7, 2008, 12:38:43 AM (16 years ago)
Author:
dai
Message:

oldSourceLinesを排除。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp

    r741 r743  
    5151    }
    5252}
    53 void DebugSection::make(void){
     53void DebugSection::make( const SourceLines &sourceLines )
     54{
    5455    int i2,BufferSize;
    5556
     
    135136    // コードと行番号の関係
    136137    ////////////////////////
    137     extern SourceLines oldSourceLines;
    138 
    139     *(long *)(buffer+i2)=(long)oldSourceLines.size();
    140     i2+=sizeof(long);
    141     BOOST_FOREACH( const SourceLine &sourceLine, oldSourceLines )
     138    *(long *)(buffer+i2)=(long)sourceLines.size();
     139    i2+=sizeof(long);
     140    BOOST_FOREACH( const SourceLine &sourceLine, sourceLines )
    142141    {
    143142        *(long *)(buffer+i2) = sourceLine.GetNativeCodePos();
     
    168167}
    169168
    170 char *DebugSection::MakeSingleStepCode(void){
     169char *DebugSection::MakeSingleStepCode(){
    171170    char *buffer;
    172171    buffer=(char *)HeapAlloc(hHeap,0,SizeOf_CodeSection);
     
    187186    return buffer;
    188187}
    189 BOOL DebugSection::__load(void){
     188BOOL DebugSection::__load(){
    190189    int i2,i3;
    191190
     
    294293    sourcesLinkRelationalObjectModule = this->_sourcesLinkRelationalObjectModule;
    295294
    296     //コードと行番号の関係
    297     extern SourceLines oldSourceLines;
    298     oldSourceLines = this->_oldSourceLines;
    299 
    300     BreakStepCodeBuffer=pobj_DBBreakPoint->update(OpBuffer,SizeOf_CodeSection);
     295    BreakStepCodeBuffer=pobj_DBBreakPoint->update(OpBuffer,SizeOf_CodeSection, this->_oldSourceLines);
    301296
    302297    //プロセスメモリにコピー
     
    389384}
    390385
    391 void DebugSection::choice(void){
     386void DebugSection::choice(){
    392387    //イメージベース
    393388    extern DWORD ImageBase;
     
    407402    compiler.SelectObjectModule( &this->objectModule );
    408403
    409     //コードと行番号の関係
    410     extern SourceLines oldSourceLines;
    411     oldSourceLines = this->_oldSourceLines;
    412 
    413404    //グローバル実行領域のサイズ
    414405    extern int GlobalOpBufferSize;
     
    423414}
    424415
    425 void DebugSection::DeleteDebugInfo(void){
     416void DebugSection::DeleteDebugInfo(){
    426417    //コードバッファを解放
    427418    free(OpBuffer);
Note: See TracChangeset for help on using the changeset viewer.