Ignore:
Timestamp:
Jun 11, 2008, 10:10:26 PM (16 years ago)
Author:
dai_9181
Message:

リンカの依存関係解決モジュールを製作中

File:
1 edited

Legend:

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

    r636 r637  
    141141    BOOST_FOREACH( const SourceLine &sourceLine, oldSourceLines )
    142142    {
    143         *(long *)(buffer+i2) = sourceLine.GetLineNum();
    144         i2+=sizeof(long);
    145 
    146143        *(long *)(buffer+i2) = sourceLine.GetNativeCodePos();
    147144        i2+=sizeof(long);
    148145
    149         *(long *)(buffer+i2) = sourceLine.GetRelationalObjectModuleIndex();
    150         i2+=sizeof(long);
    151 
    152         *(long *)(buffer+i2) = sourceLine.GetSourceCodePos();
    153         i2+=sizeof(long);
    154 
    155146        *(long *)(buffer+i2) = sourceLine.GetCodeType();
     147        i2+=sizeof(long);
     148
     149        *(long *)(buffer+i2) = sourceLine.GetSourceCodePosition().GetRelationalObjectModuleIndex();
     150        i2+=sizeof(long);
     151
     152        *(long *)(buffer+i2) = sourceLine.GetSourceCodePosition().GetPos();
    156153        i2+=sizeof(long);
    157154
     
    245242    i2+=sizeof(long);
    246243    for(i3=0;i3<maxLineInfoNum;i3++){
    247         int lineNum = *(long *)(buffer+i2);
    248         i2+=sizeof(long);
    249 
    250244        int nativeCodePos = *(long *)(buffer+i2);
    251245        i2+=sizeof(long);
    252246
    253         int sourceIndex = *(long *)(buffer+i2);
     247        DWORD sourceLineType = *(DWORD *)(buffer+i2);
     248        i2+=sizeof(long);
     249
     250        int relationalObjectModuleIndex = *(long *)(buffer+i2);
    254251        i2+=sizeof(long);
    255252
    256253        int sourceCodePos = *(long *)(buffer+i2);
    257         i2+=sizeof(long);
    258 
    259         DWORD sourceLineType = *(DWORD *)(buffer+i2);
    260254        i2+=sizeof(long);
    261255
    262256        _oldSourceLines.push_back(
    263257            SourceLine(
    264                 lineNum,
    265258                nativeCodePos,
    266                 sourceIndex,
    267                 sourceCodePos,
    268                 sourceLineType
     259                sourceLineType,
     260                SourceCodePosition( relationalObjectModuleIndex, sourceCodePos )
    269261            )
    270262        );
Note: See TracChangeset for help on using the changeset viewer.