stack frame size for xtensa functions (#5734)

This commit is contained in:
Ahmed Mohamed Abd El-MAwgood 2016-09-11 23:36:55 +03:00 committed by GitHub
parent 3de8491858
commit db1d20c054

View File

@ -76,6 +76,11 @@ static void xtensa_store_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf
static void xtensa_add_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) {
op->type = R_ANAL_OP_TYPE_ADD;
if ((buf[0] >> 4) && (buf[1] & 0xf) && buf[2] > 0x7f) {
op->val = (ut8) ~buf[2] + 1;
op->stackop = R_ANAL_STACK_INC;
//save stack frame size whenever adding to stack frame
}
}
static void xtensa_sub_op (RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf) {