mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Use proper symbol address.
This commit is contained in:
parent
747f26ef74
commit
c87c464f23
@ -1493,10 +1493,10 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip
|
|||||||
}
|
}
|
||||||
if( m_asmBytes )
|
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 );
|
assert( code );
|
||||||
char tmp[64];
|
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();
|
ImGui::SameLine();
|
||||||
TextColoredUnformatted( ImVec4( 0.5, 0.5, 1, 1 ), tmp );
|
TextColoredUnformatted( ImVec4( 0.5, 0.5, 1, 1 ), tmp );
|
||||||
ImGui::SameLine( 0, 0 );
|
ImGui::SameLine( 0, 0 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user