mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Select proper operand for LEA processing in AT&T mode.
This commit is contained in:
parent
992fba7e07
commit
03c3a3e7c7
@ -685,8 +685,9 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
|
|||||||
if( ( m_cpuArch == CpuArchX64 || m_cpuArch == CpuArchX86 ) && op.id == X86_INS_LEA )
|
if( ( m_cpuArch == CpuArchX64 || m_cpuArch == CpuArchX86 ) && op.id == X86_INS_LEA )
|
||||||
{
|
{
|
||||||
assert( op.detail->x86.op_count == 2 );
|
assert( op.detail->x86.op_count == 2 );
|
||||||
assert( op.detail->x86.operands[1].type == X86_OP_MEM );
|
const auto opidx = m_atnt ? 0 : 1;
|
||||||
auto& mem = op.detail->x86.operands[1].mem;
|
assert( op.detail->x86.operands[opidx].type == X86_OP_MEM );
|
||||||
|
auto& mem = op.detail->x86.operands[opidx].mem;
|
||||||
if( mem.base == X86_REG_INVALID )
|
if( mem.base == X86_REG_INVALID )
|
||||||
{
|
{
|
||||||
if( mem.index == X86_REG_INVALID )
|
if( mem.index == X86_REG_INVALID )
|
||||||
|
Loading…
Reference in New Issue
Block a user