1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Create code address -> symbol map.

This commit is contained in:
Bartosz Taudul
2021-06-19 19:07:35 +02:00
parent fe7db6db4e
commit 654331a8c8
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -6268,6 +6268,11 @@ void Worker::ProcessCodeInformation( const QueueCodeInformation& ev )
auto cit = m_checkedFileStrings.find( ref );
if( cit == m_checkedFileStrings.end() ) CacheSource( ref );
}
if( ev.symAddr != 0 )
{
assert( m_data.codeSymbolMap.find( ev.ptr ) == m_data.codeSymbolMap.end() );
m_data.codeSymbolMap.emplace( ev.ptr, ev.symAddr );
}
}
void Worker::ProcessCrashReport( const QueueCrashReport& ev )