honor retn <num> in esil x86 cs (#7457)

This commit is contained in:
Rene Laemmert 2017-05-09 12:43:58 +02:00 committed by radare
parent 6a9579097c
commit f355ad66a1

View File

@ -957,8 +957,14 @@ static void anop_esil (RAnal *a, RAnalOp *op, ut64 addr, const ut8 *buf, int len
case X86_INS_IRETD:
case X86_INS_IRETQ:
case X86_INS_SYSRET:
{
int cleanup = 0;
if (INSOPS > 0) {
cleanup = (int)INSOP(0).imm;
}
esilprintf (op, "%s,[%d],%s,=,%d,%s,+=",
sp, rs, pc, rs, sp);
sp, rs, pc, rs + cleanup, sp);
}
break;
case X86_INS_INT3:
esilprintf (op, "3,$");