diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 5b54deaf..6439d956 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -701,6 +701,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker ) const auto& detail = *op.detail; bool hasJump = false; bool jumpConditional = false; + OpType opType = OpType::None; for( auto j=0; j= 4 auto& entry = m_asm.back(); diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 162305d6..120a188d 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -77,6 +77,16 @@ private: enum { RegMask = 0x0FF }; enum { FlagMask = 0xF00 }; + enum class OpType : uint8_t + { + None, + Jump, + Branch, + Call, + Ret, + Privileged + }; + struct AsmLine { uint64_t addr; @@ -85,6 +95,7 @@ private: std::string operands; uint8_t len; LeaData leaData; + OpType opType; bool jumpConditional; std::vector params; union