mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Search for address within current symbol.
This commit is contained in:
parent
d2ebc58be3
commit
554366ad9f
@ -1111,7 +1111,21 @@ void SourceView::SelectAsmLines( uint32_t file, uint32_t line, const Worker& wor
|
|||||||
const auto& addr = *addresses;
|
const auto& addr = *addresses;
|
||||||
if( changeAsmLine && !ImGui::GetIO().KeyCtrl )
|
if( changeAsmLine && !ImGui::GetIO().KeyCtrl )
|
||||||
{
|
{
|
||||||
m_targetAddr = targetAddr != 0 ? targetAddr : addr[0];
|
if( targetAddr != 0 )
|
||||||
|
{
|
||||||
|
m_targetAddr == targetAddr;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for( auto& v : addr )
|
||||||
|
{
|
||||||
|
if( v >= m_baseAddr && v < m_baseAddr + m_codeLen )
|
||||||
|
{
|
||||||
|
m_targetAddr = v;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for( auto& v : addr )
|
for( auto& v : addr )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user