Display function assigned to assembly line.

This commit is contained in:
Bartosz Taudul 2021-06-19 19:30:06 +02:00
parent ec3ee09f09
commit 8045ceee5d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3116,6 +3116,18 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
lineHovered = true; lineHovered = true;
if( m_font ) ImGui::PopFont(); if( m_font ) ImGui::PopFont();
ImGui::BeginTooltip(); ImGui::BeginTooltip();
if( worker.HasInlineSymbolAddresses() )
{
const auto symAddr = worker.GetInlineSymbolForAddress( line.addr );
if( symAddr != 0 )
{
const auto symData = worker.GetSymbolData( symAddr );
if( symData )
{
TextFocused( "Function:", worker.GetString( symData->name ) );
}
}
}
TextFocused( "File:", fileName ); TextFocused( "File:", fileName );
TextFocused( "Line:", RealToString( srcline ) ); TextFocused( "Line:", RealToString( srcline ) );
if( SourceFileValid( fileName, worker.GetCaptureTime(), view, worker ) ) if( SourceFileValid( fileName, worker.GetCaptureTime(), view, worker ) )