mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Mark privileged instructions in the tooltip.
This commit is contained in:
parent
4c086e94e4
commit
4cf096d883
@ -3960,7 +3960,21 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
||||
ImGui::BeginTooltip();
|
||||
if( jumpName || opdesc != 0 )
|
||||
{
|
||||
if( opdesc != 0 ) ImGui::TextUnformatted( OpDescList[opdesc] );
|
||||
if( opdesc != 0 )
|
||||
{
|
||||
ImGui::TextUnformatted( OpDescList[opdesc] );
|
||||
if( line.opType == OpType::Privileged )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
TextColoredUnformatted( AsmOpTypeColors[(int)OpType::Privileged], "privileged" );
|
||||
}
|
||||
}
|
||||
else if( line.opType == OpType::Privileged )
|
||||
{
|
||||
TextColoredUnformatted( AsmOpTypeColors[(int)OpType::Privileged], "Privileged" );
|
||||
}
|
||||
if( jumpName )
|
||||
{
|
||||
if( jumpBase == m_baseAddr )
|
||||
|
Loading…
Reference in New Issue
Block a user