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:
parent
2031c92f7a
commit
a5998adf83
@ -3615,9 +3615,17 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
const auto symData = worker.GetSymbolData( symAddr );
|
const auto symData = worker.GetSymbolData( symAddr );
|
||||||
if( symData )
|
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::SameLine();
|
||||||
ImGui::TextDisabled( "(0x%" PRIx64 ")", symAddr );
|
ImGui::TextDisabled( "(0x%" PRIx64 ")", symAddr );
|
||||||
|
if( normalized != symName && strcmp( normalized, symName ) != 0 )
|
||||||
|
{
|
||||||
|
ImGui::PushFont( m_smallFont );
|
||||||
|
TextDisabledUnformatted( symName );
|
||||||
|
ImGui::PopFont();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user