Module ida_entry
Functions that deal with entry points.
Exported functions are considered as entry points as well.
IDA maintains list of entry points to the program. Each entry point:
- has an address
- has a name
- may have an ordinal number
Global variables
var AEF_IDBENC
-
the name is given in the IDB encoding; non-ASCII bytes will be decoded accordingly. Specifying AEF_IDBENC also implies AEF_NODUMMY
var AEF_NODUMMY
-
automatically prepend the name with '_' if it begins with a dummy suffix. See also AEF_IDBENC
var AEF_UTF8
-
the name is given in UTF-8 (default)
Functions
def add_entry(*args) ‑> bool
-
add_entry(ord, ea, name, makecode, flags=0) -> boolAdd an entry point to the list of entry points.ord: (C++: uval_t) ordinal number if ordinal number is equal to 'ea' then ordinal isnot usedea: (C++: ea_t) linear addressname: (C++: const char *) name of entry point. If the specified location already has a name,the old name will be appended to the regular comment. If name == nullptr, then the old name will be retained.makecode: (C++: bool) should the kernel convert bytes at the entry point toinstruction(s)flags: (C++: int) See AEF_*return: success (currently always true)
def get_entry(*args) ‑> ea_t
-
get_entry(ord) -> ea_tGet entry point address by its ordinalord: (C++: uval_t) ordinal number of entry pointreturn: address or BADADDR
def get_entry_forwarder(*args) ‑> qstring *
-
get_entry_forwarder(ord) -> strGet forwarder name for the entry point by its ordinal.ord: (C++: uval_t) ordinal number of entry pointreturn: size of entry forwarder name or -1
def get_entry_name(*args) ‑> qstring *
-
get_entry_name(ord) -> strGet name of the entry point by its ordinal.ord: (C++: uval_t) ordinal number of entry pointreturn: size of entry name or -1
def get_entry_ordinal(*args) ‑> uval_t
-
get_entry_ordinal(idx) -> uval_tGet ordinal number of an entry point.idx: (C++: size_t) internal number of entry point. Should be in the range0..get_entry_qty()-1return: ordinal number or 0.
def get_entry_qty(*args) ‑> size_t
-
get_entry_qty() -> size_tGet number of entry points.
def rename_entry(*args) ‑> bool
-
rename_entry(ord, name, flags=0) -> boolRename entry point.ord: (C++: uval_t) ordinal number of the entry pointname: (C++: const char *) name of entry point. If the specified location already has a name,the old name will be appended to a repeatable comment.flags: (C++: int) See AEF_*return: success
def set_entry_forwarder(*args) ‑> bool
-
set_entry_forwarder(ord, name, flags=0) -> boolSet forwarder name for ordinal.ord: (C++: uval_t) ordinal number of the entry pointname: (C++: const char *) forwarder name for entry point.flags: (C++: int) See AEF_*return: success