mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 12:53:51 +00:00
Jump from assembly to source line.
This commit is contained in:
parent
fe2dc8c489
commit
59a49f0698
@ -505,9 +505,18 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip
|
|||||||
{
|
{
|
||||||
if( m_font ) ImGui::PopFont();
|
if( m_font ) ImGui::PopFont();
|
||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
ImGui::Text( "%s:%i", worker.GetString( idx ), srcline );
|
const auto fileName = worker.GetString( idx );
|
||||||
|
ImGui::Text( "%s:%i", fileName, srcline );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
if( m_font ) ImGui::PushFont( m_font );
|
if( m_font ) ImGui::PushFont( m_font );
|
||||||
|
|
||||||
|
if( !m_lines.empty() && m_file == fileName && ImGui::IsItemClicked() )
|
||||||
|
{
|
||||||
|
m_currentAddr = line.addr;
|
||||||
|
m_targetLine = srcline;
|
||||||
|
m_selectedLine = srcline;
|
||||||
|
m_showAsm = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::SameLine( 0, ty );
|
ImGui::SameLine( 0, ty );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user