diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 256eb3a0..ee385563 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1060,6 +1060,22 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view ) if( ImGui::Selectable( symName, v.first == m_symAddr, ImGuiSelectableFlags_SpanAllColumns ) ) { m_symAddr = v.first; + const auto sym = worker.GetSymbolData( v.first ); + const char* file; + uint32_t line; + if( sym->isInline ) + { + file = worker.GetString( sym->callFile ); + line = sym->callLine; + } + else + { + file = worker.GetString( sym->file ); + line = sym->line; + } + ParseSource( file, worker, view ); + m_targetLine = line; + SelectLine( line, &worker, true ); } ImGui::PopID(); ImGui::NextColumn();