From b016d9e295977544b59ddb9fcef74b74d0a3611d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 2 Apr 2020 13:10:18 +0200 Subject: [PATCH] Going from source location to assembly line. --- server/TracySourceView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 6bbc8142..1b942938 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -476,6 +476,12 @@ void SourceView::RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint sprintf( buf, "@%s", asmString ); const auto asmsz = strlen( buf ); TextDisabledUnformatted( buf ); + if( ImGui::IsItemClicked() ) + { + m_showAsm = true; + m_currentAddr = (*addresses)[0]; + m_targetAddr = (*addresses)[0]; + } ImGui::SameLine( 0, 0 ); ImGui::ItemSize( ImVec2( stw * ( 8 - asmsz ), ty ), 0 ); }