1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Normalize function name in assembly line location popup.

This commit is contained in:
Bartosz Taudul 2022-08-15 22:16:05 +02:00
parent 2031c92f7a
commit a5998adf83
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3615,9 +3615,17 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
const auto symData = worker.GetSymbolData( symAddr );
if( symData )
{
TextFocused( "Function:", worker.GetString( symData->name ) );
const auto symName = worker.GetString( symData->name );
const auto normalized = view.GetShortenName() != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : symName;
TextFocused( "Function:", normalized );
ImGui::SameLine();
ImGui::TextDisabled( "(0x%" PRIx64 ")", symAddr );
if( normalized != symName && strcmp( normalized, symName ) != 0 )
{
ImGui::PushFont( m_smallFont );
TextDisabledUnformatted( symName );
ImGui::PopFont();
}
}
}
}