Print symbol name in symbol view with big font.

This commit is contained in:
Bartosz Taudul 2022-08-15 22:53:14 +02:00
parent fa0322f6b4
commit 00e0187506
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1093,6 +1093,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
const auto shortenName = view.GetShortenName();
auto sym = worker.GetSymbolData( m_symAddr );
assert( sym );
ImGui::PushFont( m_bigFont );
if( sym->isInline )
{
auto parent = worker.GetSymbolData( m_baseAddr );
@ -1107,7 +1108,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
ImGui::PopFont();
TooltipNormalizedName( symName, normalized );
ImGui::PushFont( m_bigFont );
}
}
else
@ -1128,13 +1131,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
ImGui::PopFont();
TooltipNormalizedName( symName, normalized );
ImGui::PushFont( m_bigFont );
}
}
ImGui::SameLine();
TextDisabledUnformatted( worker.GetString( sym->imageName ) );
ImGui::SameLine();
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
ImGui::PopFont();
const bool limitView = view.m_statRange.active;
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );