Module ida_funcs
[frames] | no frames]

Module ida_funcs

IDA Plugin SDK API wrapper: funcs

Classes
  regarg_t
Proxy of C++ regarg_t class
  func_t
Proxy of C++ func_t class
  lock_func
Proxy of C++ lock_func class
  func_tail_iterator_t
Proxy of C++ func_tail_iterator_t class
  func_item_iterator_t
Proxy of C++ func_item_iterator_t class
  func_parent_iterator_t
Proxy of C++ func_parent_iterator_t class
Functions
bool
is_func_entry(pfn)
bool
is_func_tail(pfn)
 
lock_func_range(pfn, lock)
bool
is_func_locked(pfn)
func_t
get_func(ea)
int
get_func_chunknum(pfn, ea)
bool
func_contains(pfn, ea)
bool
is_same_func(ea1, ea2)
func_t
getn_func(n)
size_t
get_func_qty()
int
get_func_num(ea)
func_t
get_prev_func(ea)
func_t
get_next_func(ea)
ea_t
get_func_ranges(ranges, pfn)
ssize_t
get_func_cmt(pfn, repeatable)
bool
set_func_cmt(pfn, cmt, repeatable)
bool
update_func(pfn)
bool
add_func_ex(pfn)
bool
add_func(ea1, ea2=BADADDR)
bool
del_func(ea)
int
set_func_start(ea, newstart)
bool
set_func_end(ea, newend)
 
reanalyze_function(pfn, ea1=0, ea2=BADADDR, analyze_parents=False)
int
find_func_bounds(nfn, flags)
ssize_t
get_func_name(ea)
int
get_func_bitness(pfn)
int
get_func_bits(pfn)
int
get_func_bytes(pfn)
bool
is_visible_func(pfn)
bool
is_finally_visible_func(pfn)
 
set_visible_func(pfn, visible)
int
set_func_name_if_jumpfunc(pfn, oldname)
ea_t
calc_thunk_func_target(pfn, fptr)
bool
func_does_return(callee)
bool
reanalyze_noret_flag(ea)
bool
set_noret_insn(insn_ea, noret)
func_t
get_fchunk(ea)
func_t
getn_fchunk(n)
size_t
get_fchunk_qty()
int
get_fchunk_num(ea)
func_t
get_prev_fchunk(ea)
func_t
get_next_fchunk(ea)
bool
append_func_tail(pfn, ea1, ea2)
bool
remove_func_tail(pfn, tail_ea)
bool
set_tail_owner(fnt, func_start)
bool
func_tail_iterator_set(fti, pfn, ea)
bool
func_tail_iterator_set_ea(fti, ea)
bool
func_parent_iterator_set(fpi, pfn)
bool
func_item_iterator_next(fii, testf, ud)
bool
func_item_iterator_prev(fii, testf, ud)
bool
func_item_iterator_decode_prev_insn(fii, out)
bool
func_item_iterator_decode_preceding_insn(fii, visited, p_farref, out)
bool
f_any(arg1, arg2)
ea_t
get_prev_func_addr(pfn, ea)
ea_t
get_next_func_addr(pfn, ea)
 
read_regargs(pfn)
 
add_regarg(pfn, reg, tif, name)
int
plan_to_apply_idasgn(fname)
int
apply_idasgn_to(signame, ea, is_startup)
int
get_idasgn_qty()
int
get_current_idasgn()
int
calc_idasgn_state(n)
int
del_idasgn(n)
ssize_t
get_idasgn_title(name)
bool
apply_startup_sig(ea, startup)
int
try_to_add_libfunc(ea)
ea_t
get_fchunk_referer(ea, idx)
PyObject *
get_idasgn_desc(n)
Get information about a signature in the list.
PyObject *
get_idasgn_desc_with_matches(n)
Get information about a signature in the list.
func_t
func_t__from_ptrval__(ptrval)
Variables
  FUNC_NORET = 1
  FUNC_FAR = 2
  FUNC_LIB = 4
  FUNC_STATICDEF = 8
  FUNC_FRAME = 16
  FUNC_USERFAR = 32
  FUNC_HIDDEN = 64
  FUNC_THUNK = 128
  FUNC_BOTTOMBP = 256
  FUNC_NORET_PENDING = 512
  FUNC_SP_READY = 1024
  FUNC_FUZZY_SP = 2048
  FUNC_PURGED_OK = 16384
  FUNC_TAIL = 32768
  MOVE_FUNC_OK = 0
  MOVE_FUNC_NOCODE = 1
  MOVE_FUNC_BADSTART = 2
  MOVE_FUNC_NOFUNC = 3
  MOVE_FUNC_REFUSED = 4
  FIND_FUNC_NORMAL = 0
  FIND_FUNC_DEFINE = 1
  FIND_FUNC_IGNOREFN = 2
  FIND_FUNC_KEEPBD = 4
  FIND_FUNC_UNDEF = 0
  FIND_FUNC_OK = 1
  FIND_FUNC_EXIST = 2
  IDASGN_OK = 0
  IDASGN_BADARG = 1
  IDASGN_APPLIED = 2
  IDASGN_CURRENT = 3
  IDASGN_PLANNED = 4
  LIBFUNC_FOUND = 0
  LIBFUNC_NONE = 1
  LIBFUNC_DELAY = 2
  __package__ = None
Function Details

get_idasgn_desc(n)

 

Get information about a signature in the list. It returns: (name of signature, names of optional libraries)

See also: get_idasgn_desc_with_matches

Parameters:
  • n - number of signature in the list (0..get_idasgn_qty()-1)
Returns: PyObject *
None on failure or tuple(signame, optlibs)

get_idasgn_desc_with_matches(n)

 

Get information about a signature in the list. It returns: (name of signature, names of optional libraries, number of matches)

Parameters:
  • n - number of signature in the list (0..get_idasgn_qty()-1)
Returns: PyObject *
None on failure or tuple(signame, optlibs, nmatches)