IDAPython 9.0
|
It defines the most common types, functions and data. Also, it tries to make system dependent definitions.
The following preprocessor macros are used in the project (the list may be incomplete)
Platform must be specified as one of:
NT - MS Windows (all platforms)
LINUX - Linux
MAC - MAC OS X
EA64 - 64-bit address size (sizeof(ea_t)==8)
X86 - 32-bit debug servers (sizeof(void*)==4)
X64 - x64 processor (sizeof(void*)==8) default
PPC - PowerPC
ARM - ARM
Classes | |
class | _qstrvec_t |
class | adiff_pointer |
Proxy of C++ adiff_pointer class. More... | |
class | asize_pointer |
Proxy of C++ asize_pointer class. More... | |
class | bool_pointer |
Proxy of C++ bool_pointer class. More... | |
class | boolvec_t |
Proxy of C++ qvector< bool > class. More... | |
class | channel_redir_t |
Proxy of C++ channel_redir_t class. More... | |
class | char_pointer |
Proxy of C++ char_pointer class. More... | |
class | ea32_pointer |
Proxy of C++ ea32_pointer class. More... | |
class | ea64_pointer |
Proxy of C++ ea64_pointer class. More... | |
class | ea_array |
Proxy of C++ ea_array class. More... | |
class | ea_pointer |
Proxy of C++ ea_pointer class. More... | |
class | flags64_pointer |
Proxy of C++ flags64_pointer class. More... | |
class | flags_pointer |
Proxy of C++ flags_pointer class. More... | |
class | instant_dbgopts_t |
Proxy of C++ instant_dbgopts_t class. More... | |
class | int16_pointer |
Proxy of C++ int16_pointer class. More... | |
class | int32_pointer |
Proxy of C++ int32_pointer class. More... | |
class | int64_pointer |
Proxy of C++ int64_pointer class. More... | |
class | int64vec_t |
Proxy of C++ qvector< long long > class. More... | |
class | int8_pointer |
Proxy of C++ int8_pointer class. More... | |
class | int_pointer |
Proxy of C++ int_pointer class. More... | |
class | intvec_t |
Proxy of C++ qvector< int > class. More... | |
class | plugin_options_t |
Proxy of C++ plugin_options_t class. More... | |
class | qmutex_locker_t |
Proxy of C++ qmutex_locker_t class. More... | |
class | qrefcnt_obj_t |
Proxy of C++ qrefcnt_obj_t class. More... | |
class | sel_array |
Proxy of C++ sel_array class. More... | |
class | sel_pointer |
Proxy of C++ sel_pointer class. More... | |
class | short_pointer |
Proxy of C++ short_pointer class. More... | |
class | sint8_pointer |
Proxy of C++ sint8_pointer class. More... | |
class | sizevec_t |
Proxy of C++ qvector< size_t > class. More... | |
class | ssize_pointer |
Proxy of C++ ssize_pointer class. More... | |
class | strvec_t |
Proxy of C++ qvector< simpleline_t > class. More... | |
class | sval_pointer |
Proxy of C++ sval_pointer class. More... | |
class | tid_array |
Proxy of C++ tid_array class. More... | |
class | tid_pointer |
Proxy of C++ tid_pointer class. More... | |
class | uchar_array |
Proxy of C++ uchar_array class. More... | |
class | uchar_pointer |
Proxy of C++ uchar_pointer class. More... | |
class | uint16_pointer |
Proxy of C++ uint16_pointer class. More... | |
class | uint32_pointer |
Proxy of C++ uint32_pointer class. More... | |
class | uint64_pointer |
Proxy of C++ uint64_pointer class. More... | |
class | uint64vec_t |
Proxy of C++ qvector< unsigned long long > class. More... | |
class | uint8_pointer |
Proxy of C++ uint8_pointer class. More... | |
class | uint_pointer |
Proxy of C++ uint_pointer class. More... | |
class | uintvec_t |
Proxy of C++ qvector< unsigned int > class. More... | |
class | ushort_pointer |
Proxy of C++ ushort_pointer class. More... | |
class | uval_array |
Proxy of C++ uval_array class. More... | |
class | uval_pointer |
Proxy of C++ uval_pointer class. More... | |
Functions | |
"int64" | qatoll ("char const *" nptr) |
qatoll(nptr) -> int64 | |
"void" | qexit ("int" code) |
qexit(code) Call qatexit functions, shut down UI and kernel, and exit. | |
"int" | log2ceil ("uint64" d64) |
log2ceil(d64) -> int calculate ceil(log2(d64)) or floor(log2(d64)), it returns 0 if d64 == 0 | |
"int" | log2floor ("uint64" d64) |
log2floor(d64) -> int | |
"uint64" | extend_sign ("uint64" v, "int" nbytes, "bool" sign_extend) |
extend_sign(v, nbytes, sign_extend) -> uint64 Sign-, or zero-extend the value 'v' to occupy 64 bits. | |
"int" | readbytes ("int" h, "uint32 *" res, "int" size, "bool" mf) |
readbytes(h, res, size, mf) -> int Read at most 4 bytes from file. | |
"int" | writebytes ("int" h, "uint32" l, "int" size, "bool" mf) |
writebytes(h, l, size, mf) -> int Write at most 4 bytes to file. | |
"void" | reloc_value ("void *" value, "int" size, "adiff_t" delta, "bool" mf) |
reloc_value(value, size, delta, mf) | |
"void *" | qvector_reserve ("void *" vec, "void *" old, "size_t" cnt, "size_t" elsize) |
qvector_reserve(vec, old, cnt, elsize) -> void * Change capacity of given qvector. | |
"bool" | relocate_relobj ("relobj_t *" _relobj, "ea_t" ea, "bool" mf) |
relocate_relobj(_relobj, ea, mf) -> bool | |
"bool" | is_cvt64 () |
is_cvt64() -> bool is IDA converting IDB into I64? | |
"bool" | quote_cmdline_arg ("qstring *" arg) |
quote_cmdline_arg(arg) -> bool Quote a command line argument if it contains escape characters. | |
"bool" | parse_dbgopts ("instant_dbgopts_t" ido, "char const *" r_switch) |
parse_dbgopts(ido, r_switch) -> bool Parse the -r command line switch (for instant debugging). | |
"int" | check_process_exit ("void *" handle, "int *" exit_code, "int" msecs=-1) |
check_process_exit(handle, exit_code, msecs=-1) -> int Check whether process has terminated or not. | |
"enum tty_control_t" | is_control_tty ("int" fd) |
is_control_tty(fd) -> enum tty_control_t Check if the current process is the owner of the TTY specified by 'fd' (typically an opened descriptor to /dev/tty). | |
"void" | qdetach_tty () |
qdetach_tty() If the current terminal is the controlling terminal of the calling process, give up this controlling terminal. | |
"void" | qcontrol_tty () |
qcontrol_tty() Make the current terminal the controlling terminal of the calling process. | |
"bool" | qthread_equal ("__qthread_t" q1, "__qthread_t" q2) |
qthread_equal(q1, q2) -> bool Are two threads equal? | |
"bool" | is_main_thread () |
is_main_thread() -> bool Are we running in the main thread? | |
"qstring *" | get_login_name () |
get_login_name() -> str Get the user name for the current desktop session | |
"PyObject *" | qstrvec_t_create () |
qstrvec_t_create() -> PyObject * | |
"bool" | qstrvec_t_destroy ("PyObject *" py_obj) |
qstrvec_t_destroy(py_obj) -> bool | |
"qstrvec_t *" | qstrvec_t_get_clink ("PyObject *" _self) |
qstrvec_t_get_clink(_self) -> qstrvec_t * | |
"PyObject *" | qstrvec_t_get_clink_ptr ("PyObject *" _self) |
qstrvec_t_get_clink_ptr(_self) -> PyObject * | |
"bool" | qstrvec_t_assign ("PyObject *" _self, "PyObject *" other) |
qstrvec_t_assign(_self, other) -> bool | |
"PyObject *" | qstrvec_t_addressof ("PyObject *" _self, "size_t" idx) |
qstrvec_t_addressof(_self, idx) -> PyObject * | |
"bool" | qstrvec_t_set ("PyObject *" _self, "size_t" idx, "char const *" s) |
qstrvec_t_set(_self, idx, s) -> bool | |
"bool" | qstrvec_t_from_list ("PyObject *" _self, "PyObject *" py_list) |
qstrvec_t_from_list(_self, py_list) -> bool | |
"size_t" | qstrvec_t_size ("PyObject *" _self) |
qstrvec_t_size(_self) -> size_t | |
"PyObject *" | qstrvec_t_get ("PyObject *" _self, "size_t" idx) |
qstrvec_t_get(_self, idx) -> PyObject * | |
"bool" | qstrvec_t_add ("PyObject *" _self, "char const *" s) |
qstrvec_t_add(_self, s) -> bool | |
"bool" | qstrvec_t_clear ("PyObject *" _self, "bool" qclear) |
qstrvec_t_clear(_self, qclear) -> bool | |
"bool" | qstrvec_t_insert ("PyObject *" _self, "size_t" idx, "char const *" s) |
qstrvec_t_insert(_self, idx, s) -> bool | |
"bool" | qstrvec_t_remove ("PyObject *" _self, "size_t" idx) |
qstrvec_t_remove(_self, idx) -> bool | |
"PyObject *" | str2user ("char const *" str) |
Insert C-style escape characters to string. | |
Variables | |
BADDIFF = _ida_pro.BADDIFF | |
IDA_SDK_VERSION = _ida_pro.IDA_SDK_VERSION | |
BADMEMSIZE = _ida_pro.BADMEMSIZE | |
_CRT_DECLARE_NONSTDC_NAMES = _ida_pro._CRT_DECLARE_NONSTDC_NAMES | |
MAXSTR = _ida_pro.MAXSTR | |
FMT_64 = _ida_pro.FMT_64 | |
FMT_Z = _ida_pro.FMT_Z | |
FMT_ZX = _ida_pro.FMT_ZX | |
FMT_ZS = _ida_pro.FMT_ZS | |
FMT_EA = _ida_pro.FMT_EA | |
IDBDEC_ESCAPE = _ida_pro.IDBDEC_ESCAPE | |
CP_BOM = _ida_pro.CP_BOM | |
UTF8_BOM = _ida_pro.UTF8_BOM | |
UTF16LE_BOM = _ida_pro.UTF16LE_BOM | |
UTF16BE_BOM = _ida_pro.UTF16BE_BOM | |
UTF32LE_BOM = _ida_pro.UTF32LE_BOM | |
UTF32BE_BOM = _ida_pro.UTF32BE_BOM | |
CP_ELLIPSIS = _ida_pro.CP_ELLIPSIS | |
UTF8_ELLIPSIS = _ida_pro.UTF8_ELLIPSIS | |
CP_REPLCHAR = _ida_pro.CP_REPLCHAR | |
UTF8_REPLCHAR = _ida_pro.UTF8_REPLCHAR | |
MAX_UTF8_SEQ_LEN = _ida_pro.MAX_UTF8_SEQ_LEN | |
CEF_RETERR = _ida_pro.CEF_RETERR | |
ENC_WIN1252 = _ida_pro.ENC_WIN1252 | |
ENC_UTF8 = _ida_pro.ENC_UTF8 | |
ENC_MUTF8 = _ida_pro.ENC_MUTF8 | |
ENC_UTF16 = _ida_pro.ENC_UTF16 | |
ENC_UTF16LE = _ida_pro.ENC_UTF16LE | |
ENC_UTF16BE = _ida_pro.ENC_UTF16BE | |
ENC_UTF32 = _ida_pro.ENC_UTF32 | |
ENC_UTF32LE = _ida_pro.ENC_UTF32LE | |
ENC_UTF32BE = _ida_pro.ENC_UTF32BE | |
CP_UTF8 = _ida_pro.CP_UTF8 | |
CP_UTF16 = _ida_pro.CP_UTF16 | |
SUBSTCHAR = _ida_pro.SUBSTCHAR | |
IOREDIR_INPUT = _ida_pro.IOREDIR_INPUT | |
IOREDIR_OUTPUT = _ida_pro.IOREDIR_OUTPUT | |
IOREDIR_APPEND = _ida_pro.IOREDIR_APPEND | |
IOREDIR_QUOTED = _ida_pro.IOREDIR_QUOTED | |
QWCONTINUED = _ida_pro.QWCONTINUED | |
QWNOHANG = _ida_pro.QWNOHANG | |
TCT_UNKNOWN = _ida_pro.TCT_UNKNOWN | |
TCT_OWNER = _ida_pro.TCT_OWNER | |
TCT_NOT_OWNER = _ida_pro.TCT_NOT_OWNER | |
cvar = _ida_pro.cvar | |
NULL_PIPE_HANDLE = cvar.NULL_PIPE_HANDLE | |
longlongvec_t = int64vec_t | |
ulonglongvec_t = uint64vec_t | |
svalvec_t = int64vec_t | |
uvalvec_t = uint64vec_t | |
eavec_t = uvalvec_t | |
"int" check_process_exit | ( | "void *" | handle, |
"int *" | exit_code, | ||
"int" | msecs = -1 ) |
handle | (C++: void *) process handle to wait for |
exit_code | (C++: int *) pointer to the buffer for the exit code |
msecs | how long to wait. special values:
|
0 | process has exited, and the exit code is available. if *exit_code < 0: the process was killed with a signal -*exit_code |
1 | process has not exited yet |
-1 | error happened, see error code for winerr() in *exit_code |
"uint64" extend_sign | ( | "uint64" | v, |
"int" | nbytes, | ||
"bool" | sign_extend ) |
The value 'v' is considered to be of size 'nbytes'.
v | (C++: uint64) |
nbytes | (C++: int) |
sign_extend | (C++: bool) |
"qstring *" get_login_name | ( | ) |
"enum tty_control_t" is_control_tty | ( | "int" | fd | ) |
fd | (C++: int) |
"bool" is_cvt64 | ( | ) |
"bool" is_main_thread | ( | ) |
"int" log2ceil | ( | "uint64" | d64 | ) |
d64 | (C++: uint64) |
"int" log2floor | ( | "uint64" | d64 | ) |
d64 | uint64 |
"bool" parse_dbgopts | ( | "instant_dbgopts_t" | ido, |
"char const *" | r_switch ) |
r_switch points to the value of the -r switch. Example: win32@localhost+
ido | (C++: struct instant_dbgopts_t *) instant_dbgopts_t * |
r_switch | (C++: const char *) char const * |
"int64" qatoll | ( | "char const *" | nptr | ) |
nptr | char const * |
"void" qcontrol_tty | ( | ) |
"void" qdetach_tty | ( | ) |
"void" qexit | ( | "int" | code | ) |
code | (C++: int) exit code |
"bool" qstrvec_t_add | ( | "PyObject *" | _self, |
"char const *" | s ) |
self | PyObject * |
s | char const * |
"PyObject *" qstrvec_t_addressof | ( | "PyObject *" | _self, |
"size_t" | idx ) |
self | PyObject * |
idx | size_t |
"bool" qstrvec_t_assign | ( | "PyObject *" | _self, |
"PyObject *" | other ) |
self | PyObject * |
other | PyObject * |
"bool" qstrvec_t_clear | ( | "PyObject *" | _self, |
"bool" | qclear ) |
self | PyObject * |
qclear | bool |
"PyObject *" qstrvec_t_create | ( | ) |
"bool" qstrvec_t_destroy | ( | "PyObject *" | py_obj | ) |
py_obj | PyObject * |
"bool" qstrvec_t_from_list | ( | "PyObject *" | _self, |
"PyObject *" | py_list ) |
self | PyObject * |
py_list | PyObject * |
"PyObject *" qstrvec_t_get | ( | "PyObject *" | _self, |
"size_t" | idx ) |
self | PyObject * |
idx | size_t |
"qstrvec_t *" qstrvec_t_get_clink | ( | "PyObject *" | _self | ) |
self | PyObject * |
"PyObject *" qstrvec_t_get_clink_ptr | ( | "PyObject *" | _self | ) |
self | PyObject * |
"bool" qstrvec_t_insert | ( | "PyObject *" | _self, |
"size_t" | idx, | ||
"char const *" | s ) |
self | PyObject * |
idx | size_t |
s | char const * |
"bool" qstrvec_t_remove | ( | "PyObject *" | _self, |
"size_t" | idx ) |
self | PyObject * |
idx | size_t |
"bool" qstrvec_t_set | ( | "PyObject *" | _self, |
"size_t" | idx, | ||
"char const *" | s ) |
self | PyObject * |
idx | size_t |
s | char const * |
"size_t" qstrvec_t_size | ( | "PyObject *" | _self | ) |
self | PyObject * |
"bool" qthread_equal | ( | "__qthread_t" | q1, |
"__qthread_t" | q2 ) |
q1 | (C++: qthread_t) |
q2 | (C++: qthread_t) |
"bool" quote_cmdline_arg | ( | "qstring *" | arg | ) |
For example, .c will be converted into "</em>.c" because * may be inadvertently expanded by the shell
arg | (C++: qstring *) |
"void *" qvector_reserve | ( | "void *" | vec, |
"void *" | old, | ||
"size_t" | cnt, | ||
"size_t" | elsize ) |
vec | (C++: void *) a pointer to a qvector |
old | (C++: void *) a pointer to the qvector's array |
cnt | (C++: size_t) number of elements to reserve |
elsize | (C++: size_t) size of each element |
"int" readbytes | ( | "int" | h, |
"uint32 *" | res, | ||
"int" | size, | ||
"bool" | mf ) |
h | (C++: int) file handle |
res | (C++: uint32 *) value read from file |
size | (C++: int) size of value in bytes (1,2,4) |
mf | (C++: bool) is MSB first? |
"void" reloc_value | ( | "void *" | value, |
"int" | size, | ||
"adiff_t" | delta, | ||
"bool" | mf ) |
value | void * |
size | int |
delta | adiff_t |
mf | bool |
"bool" relocate_relobj | ( | "relobj_t *" | _relobj, |
"ea_t" | ea, | ||
"bool" | mf ) |
_relobj | relobj_t * |
ea | ea_t |
mf | bool |
"PyObject *" str2user | ( | "char const *" | str | ) |
str | the input string |
"int" writebytes | ( | "int" | h, |
"uint32" | l, | ||
"int" | size, | ||
"bool" | mf ) |
h | (C++: int) file handle |
l | (C++: uint32) value to write |
size | (C++: int) size of value in bytes (1,2,4) |
mf | (C++: bool) is MSB first? |
|
protected |
BADDIFF = _ida_pro.BADDIFF |
BADMEMSIZE = _ida_pro.BADMEMSIZE |
CEF_RETERR = _ida_pro.CEF_RETERR |
CP_BOM = _ida_pro.CP_BOM |
CP_ELLIPSIS = _ida_pro.CP_ELLIPSIS |
CP_REPLCHAR = _ida_pro.CP_REPLCHAR |
CP_UTF16 = _ida_pro.CP_UTF16 |
CP_UTF8 = _ida_pro.CP_UTF8 |
cvar = _ida_pro.cvar |
eavec_t = uvalvec_t |
ENC_MUTF8 = _ida_pro.ENC_MUTF8 |
ENC_UTF16 = _ida_pro.ENC_UTF16 |
ENC_UTF16BE = _ida_pro.ENC_UTF16BE |
ENC_UTF16LE = _ida_pro.ENC_UTF16LE |
ENC_UTF32 = _ida_pro.ENC_UTF32 |
ENC_UTF32BE = _ida_pro.ENC_UTF32BE |
ENC_UTF32LE = _ida_pro.ENC_UTF32LE |
ENC_UTF8 = _ida_pro.ENC_UTF8 |
ENC_WIN1252 = _ida_pro.ENC_WIN1252 |
FMT_64 = _ida_pro.FMT_64 |
FMT_EA = _ida_pro.FMT_EA |
FMT_Z = _ida_pro.FMT_Z |
FMT_ZS = _ida_pro.FMT_ZS |
FMT_ZX = _ida_pro.FMT_ZX |
IDA_SDK_VERSION = _ida_pro.IDA_SDK_VERSION |
IDBDEC_ESCAPE = _ida_pro.IDBDEC_ESCAPE |
IOREDIR_APPEND = _ida_pro.IOREDIR_APPEND |
IOREDIR_INPUT = _ida_pro.IOREDIR_INPUT |
IOREDIR_OUTPUT = _ida_pro.IOREDIR_OUTPUT |
IOREDIR_QUOTED = _ida_pro.IOREDIR_QUOTED |
longlongvec_t = int64vec_t |
MAX_UTF8_SEQ_LEN = _ida_pro.MAX_UTF8_SEQ_LEN |
MAXSTR = _ida_pro.MAXSTR |
NULL_PIPE_HANDLE = cvar.NULL_PIPE_HANDLE |
QWCONTINUED = _ida_pro.QWCONTINUED |
QWNOHANG = _ida_pro.QWNOHANG |
SUBSTCHAR = _ida_pro.SUBSTCHAR |
svalvec_t = int64vec_t |
TCT_NOT_OWNER = _ida_pro.TCT_NOT_OWNER |
TCT_OWNER = _ida_pro.TCT_OWNER |
TCT_UNKNOWN = _ida_pro.TCT_UNKNOWN |
ulonglongvec_t = uint64vec_t |
UTF16BE_BOM = _ida_pro.UTF16BE_BOM |
UTF16LE_BOM = _ida_pro.UTF16LE_BOM |
UTF32BE_BOM = _ida_pro.UTF32BE_BOM |
UTF32LE_BOM = _ida_pro.UTF32LE_BOM |
UTF8_BOM = _ida_pro.UTF8_BOM |
UTF8_ELLIPSIS = _ida_pro.UTF8_ELLIPSIS |
UTF8_REPLCHAR = _ida_pro.UTF8_REPLCHAR |
uvalvec_t = uint64vec_t |