mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +00:00
Use generic group categories.
This commit is contained in:
parent
078109eca2
commit
013bb5a4f2
@ -132,43 +132,14 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
|
|||||||
const auto& op = insn[i];
|
const auto& op = insn[i];
|
||||||
const auto& detail = *op.detail;
|
const auto& detail = *op.detail;
|
||||||
bool hasJump = false;
|
bool hasJump = false;
|
||||||
switch( arch )
|
|
||||||
{
|
|
||||||
case CpuArchX86:
|
|
||||||
case CpuArchX64:
|
|
||||||
for( auto j=0; j<detail.groups_count; j++ )
|
for( auto j=0; j<detail.groups_count; j++ )
|
||||||
{
|
{
|
||||||
if( detail.groups[j] == X86_GRP_JUMP || detail.groups[j] == X86_GRP_CALL )
|
if( detail.groups[j] == CS_GRP_JUMP || detail.groups[j] == CS_GRP_CALL )
|
||||||
{
|
{
|
||||||
hasJump = true;
|
hasJump = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case CpuArchArm32:
|
|
||||||
for( auto j=0; j<detail.groups_count; j++ )
|
|
||||||
{
|
|
||||||
if( detail.groups[j] == ARM_GRP_JUMP || detail.groups[j] == ARM_GRP_CALL )
|
|
||||||
{
|
|
||||||
hasJump = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case CpuArchArm64:
|
|
||||||
for( auto j=0; j<detail.groups_count; j++ )
|
|
||||||
{
|
|
||||||
if( detail.groups[j] == ARM64_GRP_JUMP || detail.groups[j] == ARM64_GRP_CALL )
|
|
||||||
{
|
|
||||||
hasJump = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert( false );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
uint64_t jumpAddr = 0;
|
uint64_t jumpAddr = 0;
|
||||||
if( hasJump )
|
if( hasJump )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user