From a1f09fab35d58bdb09a425437a7aa43fe538e500 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 18 Aug 2022 00:19:32 +0200 Subject: [PATCH] Assembly lines without source locations are navigatable to. --- server/TracySourceView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 51e6e1a8..1a43344b 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2639,7 +2639,14 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker { SmallColorBox( 0 ); ImGui::SameLine(); - ImGui::TextDisabled( "0x%" PRIx64, src ); + char buf[32]; + sprintf( buf, "0x%" PRIx64, src ); + if( ImGui::MenuItem( buf ) ) + { + m_targetAddr = src; + m_selectedAddresses.clear(); + m_selectedAddresses.emplace( src ); + } } else {