From 17a5faa5e0a4f725c8d730ddb017093e370df9ab Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 30 Mar 2020 02:46:29 +0200 Subject: [PATCH] Display parent symbol for inline symbols in source view. --- server/TracySourceView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 3217764c..90e8f8f1 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -268,6 +268,15 @@ void SourceView::Render( const Worker& worker ) ImGui::Spacing(); ImGui::SameLine(); TextFocused( "Symbol:", worker.GetString( sym->name ) ); + if( sym->isInline ) + { + auto parent = worker.GetSymbolData( m_baseAddr ); + if( parent ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s)", worker.GetString( parent->name ) ); + } + } } if( !m_showAsm )