mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Use correct symbol address.
This commit is contained in:
parent
898a10ef82
commit
4f3934ae6a
@ -1572,7 +1572,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
|||||||
TextFocused( "Disassembled bytes:", RealToString( m_disasmFail ) );
|
TextFocused( "Disassembled bytes:", RealToString( m_disasmFail ) );
|
||||||
char tmp[64];
|
char tmp[64];
|
||||||
auto bytesLeft = std::min( 16u, m_codeLen - m_disasmFail );
|
auto bytesLeft = std::min( 16u, m_codeLen - m_disasmFail );
|
||||||
auto code = worker.GetSymbolCode( m_symAddr, m_codeLen );
|
auto code = worker.GetSymbolCode( m_baseAddr, m_codeLen );
|
||||||
assert( code );
|
assert( code );
|
||||||
PrintHexBytes( tmp, (const uint8_t*)code, bytesLeft );
|
PrintHexBytes( tmp, (const uint8_t*)code, bytesLeft );
|
||||||
TextFocused( "Failure bytes:", tmp );
|
TextFocused( "Failure bytes:", tmp );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user