Ignore:
Timestamp:
Feb 24, 2008, 6:59:33 PM (16 years ago)
Author:
dai_9181
Message:

デバッガ変数リストのローカル変数のスコープ判定が間違っていたため、修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/Linker.cpp

    r370 r393  
    264264        if( pUserProc->GetNativeCode().GetSize() > 0 )
    265265        {
    266             pUserProc->SetBeginOpAddress( nativeCode.GetSize() );
    267 
     266            // 関数の開始位置(コードセクションからのオフセット)
     267            int beginCodePos = nativeCode.GetSize();
     268
     269            // コードセクションに関数のネイティブコードを追加
    268270            nativeCode.PutEx( pUserProc->GetNativeCode() );
    269271
    270             pUserProc->SetEndOpAddress( nativeCode.GetSize() );
     272            // 関数の終了位置(コードセクションからのオフセット)
     273            int endCodePos = nativeCode.GetSize();
     274
     275            // コードセクション内の関数の範囲を設定
     276            pUserProc->SetBeginOpAddress( beginCodePos );
     277            pUserProc->SetEndOpAddress( endCodePos );
    271278        }
    272279    }
Note: See TracChangeset for help on using the changeset viewer.