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

Pass symbol address to source view.

This commit is contained in:
Bartosz Taudul
2020-03-25 00:07:31 +01:00
parent 1999352004
commit 4c92a2619f
4 changed files with 29 additions and 26 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ namespace tracy
SourceView::SourceView( ImFont* font )
: m_font( font )
, m_file( nullptr )
, m_symAddr( 0 )
, m_data( nullptr )
, m_dataSize( 0 )
, m_targetLine( 0 )
@@ -24,10 +25,11 @@ SourceView::~SourceView()
delete[] m_data;
}
void SourceView::Open( const char* fileName, int line )
void SourceView::Open( const char* fileName, int line, uint64_t symAddr )
{
m_targetLine = line;
m_selectedLine = line;
m_symAddr = symAddr;
if( m_file != fileName )
{