Store symbol length in trace dumps.

This commit is contained in:
Bartosz Taudul 2020-03-25 18:37:08 +01:00
parent c515a53986
commit bf52883331
2 changed files with 17 additions and 2 deletions

View File

@ -7,7 +7,7 @@ namespace Version
{ {
enum { Major = 0 }; enum { Major = 0 };
enum { Minor = 6 }; enum { Minor = 6 };
enum { Patch = 6 }; enum { Patch = 7 };
} }
} }

View File

@ -1641,7 +1641,22 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
} }
} }
if( fileVer >= FileVersion( 0, 6, 5 ) ) if( fileVer >= FileVersion( 0, 6, 7 ) )
{
f.Read( sz );
m_data.symbolMap.reserve( sz );
for( uint64_t i=0; i<sz; i++ )
{
uint64_t symAddr;
StringIdx name, file, imageName, callFile;
uint32_t line, callLine;
uint8_t isInline;
Int24 size;
f.Read9( symAddr, name, file, line, imageName, callFile, callLine, isInline, size );
m_data.symbolMap.emplace( symAddr, SymbolData { name, file, line, imageName, callFile, callLine, isInline, size } );
}
}
else if( fileVer >= FileVersion( 0, 6, 5 ) )
{ {
f.Read( sz ); f.Read( sz );
m_data.symbolMap.reserve( sz ); m_data.symbolMap.reserve( sz );