mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 08:12:44 +00:00
Monitor opcodes are not traps in dalvik
This commit is contained in:
parent
dc8bf4d6e8
commit
78a26275e1
@ -266,8 +266,10 @@ static int dalvik_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int l
|
||||
break;
|
||||
case 0xec: // breakpoint
|
||||
case 0x1d: // monitor-enter
|
||||
op->type = R_ANAL_OP_TYPE_UPUSH;
|
||||
break;
|
||||
case 0x1e: // monitor-exit /// wrong type?
|
||||
op->type = R_ANAL_OP_TYPE_TRAP;
|
||||
op->type = R_ANAL_OP_TYPE_POP;
|
||||
break;
|
||||
case 0x6f: // invoke-super
|
||||
case 0xfa: // invoke-super-quick
|
||||
|
@ -399,10 +399,12 @@ typedef enum {
|
||||
R_ANAL_OP_TYPE_COND = 0x80000000, // TODO must be moved to prefix?
|
||||
//TODO: MOVE TO PREFIX .. it is used by anal_ex.. must be updated
|
||||
R_ANAL_OP_TYPE_REP = 0x40000000, /* repeats next instruction N times */
|
||||
R_ANAL_OP_TYPE_MEM = 0x20000000, // TODO must be moved to prefix?
|
||||
R_ANAL_OP_TYPE_NULL = 0,
|
||||
R_ANAL_OP_TYPE_JMP = 1, /* mandatory jump */
|
||||
R_ANAL_OP_TYPE_UJMP = 2, /* unknown jump (register or so) */
|
||||
R_ANAL_OP_TYPE_CJMP = R_ANAL_OP_TYPE_COND | R_ANAL_OP_TYPE_JMP, /* conditional jump */
|
||||
R_ANAL_OP_TYPE_MJMP = R_ANAL_OP_TYPE_MEM | R_ANAL_OP_TYPE_JMP, /* conditional jump */
|
||||
R_ANAL_OP_TYPE_UCJMP = R_ANAL_OP_TYPE_COND | R_ANAL_OP_TYPE_UJMP, /* conditional unknown jump */
|
||||
R_ANAL_OP_TYPE_CALL = 3, /* call to subroutine (branch+link) */
|
||||
R_ANAL_OP_TYPE_UCALL = 4, /* unknown call (register or so) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user