mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Collect jumps outside symbol.
This commit is contained in:
@@ -106,6 +106,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
|
||||
{
|
||||
m_asm.clear();
|
||||
m_jumpTable.clear();
|
||||
m_jumpOut.clear();
|
||||
m_maxJumpLevel = 0;
|
||||
if( symAddr == 0 ) return false;
|
||||
const auto arch = worker.GetCpuArch();
|
||||
@@ -197,6 +198,10 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
|
||||
it->second.source.emplace_back( op.address );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_jumpOut.emplace( op.address );
|
||||
}
|
||||
}
|
||||
m_asm.emplace_back( AsmLine { op.address, jumpAddr, op.mnemonic, op.op_str } );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user