Module ida_frame
[frames] | no frames]

Module ida_frame

IDA Plugin SDK API wrapper: frame

Classes
  xreflist_t
Proxy of C++ qvector<(xreflist_entry_t)> class
  regvar_t
Proxy of C++ regvar_t class
  llabel_t
Proxy of C++ llabel_t class
  xreflist_entry_t
Proxy of C++ xreflist_entry_t class
Functions
PyObject *
get_stkvar(insn, op, v)
Get pointer to stack variable
bool
add_frame(pfn, frsize, frregs, argsize)
bool
del_frame(pfn)
bool
set_frame_size(pfn, frsize, frregs, argsize)
asize_t
get_frame_size(pfn)
int
get_frame_retsize(pfn)
 
get_frame_part(range, pfn, part)
ea_t
frame_off_args(pfn)
ea_t
frame_off_retaddr(pfn)
ea_t
frame_off_savregs(pfn)
ea_t
frame_off_lvars(pfn)
bool
is_funcarg_off(pfn, frameoff)
sval_t
lvar_off(pfn, frameoff)
struc_t
get_frame(pfn)
get_frame(ea) -> struc_t *
bool
update_fpd(pfn, fpd)
bool
set_purged(ea, nbytes, override_old_value)
ea_t
get_func_by_frame(frame_id)
bool
define_stkvar(pfn, name, off, flags, ti, nbytes)
ssize_t
build_stkvar_name(pfn, v)
ea_t
calc_stkvar_struc_offset(pfn, insn, n)
int
delete_unreferenced_stkvars(pfn)
int
delete_wrong_stkvar_ops(pfn)
int
add_regvar(pfn, ea1, ea2, canon, user, cmt)
regvar_t
find_regvar(pfn, ea1, ea2, canon, user)
find_regvar(pfn, ea, canon) -> regvar_t
int
rename_regvar(pfn, v, user)
int
set_regvar_cmt(pfn, v, cmt)
int
del_regvar(pfn, ea1, ea2, canon)
bool
add_auto_stkpnt(pfn, ea, delta)
bool
add_user_stkpnt(ea, delta)
bool
del_stkpnt(pfn, ea)
sval_t
get_spd(pfn, ea)
sval_t
get_effective_spd(pfn, ea)
sval_t
get_sp_delta(pfn, ea)
ea_t
get_min_spd_ea(pfn)
bool
recalc_spd(cur_ea)
 
build_stkvar_xrefs(out, pfn, mptr)
Variables
  FPC_ARGS = 0
  FPC_RETADDR = 1
  FPC_SAVREGS = 2
  FPC_LVARS = 3
  STKVAR_VALID_SIZE = 1
  REGVAR_ERROR_OK = 0
  REGVAR_ERROR_ARG = -1
  REGVAR_ERROR_RANGE = -2
  REGVAR_ERROR_NAME = -3
  __package__ = None
Function Details

get_stkvar(insn, op, v)

 

Get pointer to stack variable

Parameters:
  • op - reference to instruction operand
  • v - immediate value in the operand (usually op.addr)
Returns: PyObject *
  • None on failure
  • tuple(member_t, actval) where actval: actual value used to fetch stack variable