mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
Fix afvR and afvW by using RAnalOp.direction
This commit is contained in:
parent
cb06ba6ea3
commit
ecdc536106
@ -580,8 +580,7 @@ static void extract_arg(RAnal *anal, RAnalFunction *fcn, RAnalOp *op, const char
|
||||
} else {
|
||||
ptr = (st64) r_num_get (NULL, addr);
|
||||
}
|
||||
//XXX: This won't work for stack based var/arg
|
||||
int rw = (op->stackop == R_ANAL_STACK_SET) ? 1 : 0;
|
||||
int rw = (op->direction == R_ANAL_OP_DIR_WRITE) ? 1 : 0;
|
||||
if (*sign == '+') {
|
||||
const char *pfx = ((ptr < fcn->maxstack) && (type == 's')) ? VARPREFIX : ARGPREFIX;
|
||||
bool isarg = strcmp(pfx , ARGPREFIX) ? false : true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user