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

Differentiate between symbol and base address.

This commit is contained in:
Bartosz Taudul
2020-03-27 17:59:16 +01:00
parent 992f4c8c2d
commit 720ed0460b
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -192,11 +192,11 @@ void View::InitTextEditor( ImFont* font )
m_sourceViewFile = nullptr;
}
void View::SetTextEditorFile( const char* fileName, int line, uint64_t symAddr )
void View::SetTextEditorFile( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr )
{
assert( fileName || symAddr );
m_sourceViewFile = fileName ? fileName : (const char*)~uint64_t( 0 );
m_sourceView->Open( fileName, line, symAddr, m_worker );
m_sourceView->Open( fileName, line, baseAddr, symAddr, m_worker );
}
const char* View::ShortenNamespace( const char* name ) const