From c87c464f2370bc19c5197071bd8a3043a0ac2122 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 24 Apr 2020 16:16:53 +0200 Subject: [PATCH] Use proper symbol address. --- server/TracySourceView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 65bbe09a..822e57dd 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1493,10 +1493,10 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip } if( m_asmBytes ) { - auto code = (const uint8_t*)worker.GetSymbolCode( m_symAddr, m_codeLen ); + auto code = (const uint8_t*)worker.GetSymbolCode( m_baseAddr, m_codeLen ); assert( code ); char tmp[64]; - const auto len = PrintHexBytes( tmp, code + line.addr - m_symAddr, line.len ); + const auto len = PrintHexBytes( tmp, code + line.addr - m_baseAddr, line.len ); ImGui::SameLine(); TextColoredUnformatted( ImVec4( 0.5, 0.5, 1, 1 ), tmp ); ImGui::SameLine( 0, 0 );