Make the local callstack more readable.

This commit is contained in:
Bartosz Taudul 2022-10-13 21:03:33 +02:00
parent 2a333b8449
commit 1419283a91
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3778,9 +3778,14 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
{ {
ImGui::TextDisabled( "%i.", i+1 ); ImGui::TextDisabled( "%i.", i+1 );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Text( "%s", worker.GetString( frame->data[i].name ) ); const auto symName = worker.GetString( frame->data[i].name );
const auto normalized = view.GetShortenName() != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : symName;
ImGui::Text( "%s", normalized );
ImGui::SameLine(); ImGui::SameLine();
ImGui::PushFont( m_smallFont );
ImGui::AlignTextToFramePadding();
ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line ); ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line );
ImGui::PopFont();
} }
} }
ImGui::EndTooltip(); ImGui::EndTooltip();