Module ida_ida

IDA project.

The ::inf structure is saved in the database and contains information specific to the current program being disassembled. Initially it is filled with values from ida.cfg.

Although it is not a good idea to change values in ::inf structure (because you will overwrite values taken from ida.cfg), you are allowed to do it if you feel it necessary.

Global Variables

ABI_8ALIGN4

ABI_8ALIGN4 = 1

ABI_BIGARG_ALIGN

ABI_BIGARG_ALIGN = 4

ABI_GCC_LAYOUT

ABI_GCC_LAYOUT = 128

ABI_HARD_FLOAT

ABI_HARD_FLOAT = 32

ABI_HUGEARG_ALIGN

ABI_HUGEARG_ALIGN = 512

ABI_MAP_STKARGS

ABI_MAP_STKARGS = 256

ABI_PACK_STKARGS

ABI_PACK_STKARGS = 2

ABI_SET_BY_USER

ABI_SET_BY_USER = 64

ABI_STACK_LDBL

ABI_STACK_LDBL = 8

ABI_STACK_VARARGS

ABI_STACK_VARARGS = 16

AF2_DOEH

AF2_DOEH = 1

AF2_DORTTI

AF2_DORTTI = 2

AF2_MACRO

AF2_MACRO = 4

AF2_MERGESTR

AF2_MERGESTR = 8

AF_ANORET

AF_ANORET = 16384

AF_CHKUNI

AF_CHKUNI = 262144

AF_CODE

AF_CODE = 1

AF_DATOFF

AF_DATOFF = 4194304

AF_DOCODE

AF_DOCODE = 1073741824

AF_DODATA

AF_DODATA = 536870912

AF_DREFOFF

AF_DREFOFF = 1048576

AF_FINAL

AF_FINAL = 2147483648

AF_FIXUP

AF_FIXUP = 524288

AF_FLIRT

AF_FLIRT = 8388608

AF_FTAIL

AF_FTAIL = 256

AF_HFLIRT

AF_HFLIRT = 67108864

AF_IMMOFF

AF_IMMOFF = 2097152

AF_JFUNC

AF_JFUNC = 134217728

AF_JUMPTBL

AF_JUMPTBL = 4

AF_LVAR

AF_LVAR = 512

AF_MARKCODE

AF_MARKCODE = 2

AF_MEMFUNC

AF_MEMFUNC = 32768

AF_NULLSUB

AF_NULLSUB = 268435456

AF_PROC

AF_PROC = 128

AF_PROCPTR

AF_PROCPTR = 64

AF_PURDAT

AF_PURDAT = 8

AF_REGARG

AF_REGARG = 2048

AF_SIGCMT

AF_SIGCMT = 16777216

AF_SIGMLT

AF_SIGMLT = 33554432

AF_STKARG

AF_STKARG = 1024

AF_STRLIT

AF_STRLIT = 131072

AF_TRACE

AF_TRACE = 4096

AF_TRFUNC

AF_TRFUNC = 65536

AF_UNK

AF_UNK = 32

AF_USED

AF_USED = 16

AF_VERSP

AF_VERSP = 8192

DEMNAM_CMNT

DEMNAM_CMNT = 0

DEMNAM_FIRST

DEMNAM_FIRST = 8

DEMNAM_GCC3

DEMNAM_GCC3 = 4

DEMNAM_MASK

DEMNAM_MASK = 3

DEMNAM_NAME

DEMNAM_NAME = 1

DEMNAM_NONE

DEMNAM_NONE = 2

IDAINFO_PROCNAME_SIZE

IDAINFO_PROCNAME_SIZE = 16

IDAINFO_STRLIT_PREF_SIZE

IDAINFO_STRLIT_PREF_SIZE = 16

IDAINFO_TAG_SIZE

IDAINFO_TAG_SIZE = 3

IDB_COMPRESSED

IDB_COMPRESSED = 2

IDB_EXT

IDB_EXT = 'i64'

IDB_EXT32

IDB_EXT32 = 'idb'

IDB_EXT64

IDB_EXT64 = 'i64'

IDB_PACKED

IDB_PACKED = 1

IDB_UNPACKED

IDB_UNPACKED = 0

IDI_ALTVAL

IDI_ALTVAL = 1

IDI_BITMAP

IDI_BITMAP = 16384

IDI_BLOB

IDI_BLOB = 8

IDI_BUFVAR

IDI_BUFVAR = 16496

IDI_BYTEARRAY

IDI_BYTEARRAY = 64

IDI_CSTR

IDI_CSTR = 16

IDI_DEC

IDI_DEC = 128

IDI_EA_HEX

IDI_EA_HEX = 0

IDI_HASH

IDI_HASH = 2048

IDI_HEX

IDI_HEX = 256

IDI_HLPSTRUC

IDI_HLPSTRUC = 4096

IDI_INC

IDI_INC = 512

IDI_MAP_VAL

IDI_MAP_VAL = 1024

IDI_NODEVAL

IDI_NODEVAL = 15

IDI_NOMERGE

IDI_NOMERGE = 65536

IDI_ONOFF

IDI_ONOFF = 32768

IDI_QSTRING

IDI_QSTRING = 32

IDI_READONLY

IDI_READONLY = 8192

IDI_SCALAR

IDI_SCALAR = 0

IDI_STRUCFLD

IDI_STRUCFLD = 0

IDI_SUPVAL

IDI_SUPVAL = 2

IDI_VALOBJ

IDI_VALOBJ = 4

INFFL_ALLASM

INFFL_ALLASM = 2

INFFL_AUTO

INFFL_AUTO = 1

INFFL_CHKOPS

INFFL_CHKOPS = 32

INFFL_GRAPH_VIEW

INFFL_GRAPH_VIEW = 128

INFFL_LOADIDC

INFFL_LOADIDC = 4

INFFL_NMOPS

INFFL_NMOPS = 64

INFFL_NOUSER

INFFL_NOUSER = 8

INFFL_READONLY

INFFL_READONLY = 16

INF_ABIBITS

INF_ABIBITS = 67

INF_ABINAME

INF_ABINAME = 81

INF_AF

INF_AF = 10

INF_AF2

INF_AF2 = 11

INF_APPCALL_OPTIONS

INF_APPCALL_OPTIONS = 68

INF_APPTYPE

INF_APPTYPE = 7

INF_ARCHIVE_PATH

INF_ARCHIVE_PATH = 82

INF_ASMTYPE

INF_ASMTYPE = 8

INF_BASEADDR

INF_BASEADDR = 12

INF_BIN_PREFIX_SIZE

INF_BIN_PREFIX_SIZE = 47

INF_CC

INF_CC = 56

INF_CC_CM

INF_CC_CM = 58

INF_CC_DEFALIGN

INF_CC_DEFALIGN = 62

INF_CC_ID

INF_CC_ID = 57

INF_CC_SIZE_B

INF_CC_SIZE_B = 60

INF_CC_SIZE_E

INF_CC_SIZE_E = 61

INF_CC_SIZE_I

INF_CC_SIZE_I = 59

INF_CC_SIZE_L

INF_CC_SIZE_L = 64

INF_CC_SIZE_LDBL

INF_CC_SIZE_LDBL = 66

INF_CC_SIZE_LL

INF_CC_SIZE_LL = 65

INF_CC_SIZE_S

INF_CC_SIZE_S = 63

INF_CMTFLG

INF_CMTFLG = 45

INF_CMT_INDENT

INF_CMT_INDENT = 41

INF_CRC32

INF_CRC32 = 92

INF_CTIME

INF_CTIME = 89

INF_C_MACROS

INF_C_MACROS = 72

INF_DATABASE_CHANGE_COUNT

INF_DATABASE_CHANGE_COUNT = 4

INF_DATATYPES

INF_DATATYPES = 55

INF_DBG_BINPATHS

INF_DBG_BINPATHS = 79

INF_DEMNAMES

INF_DEMNAMES = 38

INF_DUALOP_GRAPH

INF_DUALOP_GRAPH = 74

INF_DUALOP_TEXT

INF_DUALOP_TEXT = 75

INF_ELAPSED

INF_ELAPSED = 90

INF_FILETYPE

INF_FILETYPE = 5

INF_FILE_FORMAT_NAME

INF_FILE_FORMAT_NAME = 69

INF_FSIZE

INF_FSIZE = 95

INF_GENFLAGS

INF_GENFLAGS = 2

INF_GROUPS

INF_GROUPS = 70

INF_HIGHOFF

INF_HIGHOFF = 24

INF_H_PATH

INF_H_PATH = 71

INF_IDA_VERSION

INF_IDA_VERSION = 77

INF_IDSNODE

INF_IDSNODE = 94

INF_IMAGEBASE

INF_IMAGEBASE = 93

INF_INCLUDE

INF_INCLUDE = 73

INF_INDENT

INF_INDENT = 40

INF_INITIAL_VERSION

INF_INITIAL_VERSION = 88

INF_INPUT_FILE_PATH

INF_INPUT_FILE_PATH = 97

INF_LAST

INF_LAST = 98

INF_LENXREF

INF_LENXREF = 43

INF_LFLAGS

INF_LFLAGS = 3

INF_LIMITER

INF_LIMITER = 46

INF_LISTNAMES

INF_LISTNAMES = 39

INF_LONG_DEMNAMES

INF_LONG_DEMNAMES = 37

INF_LOWOFF

INF_LOWOFF = 23

INF_MAIN

INF_MAIN = 18

INF_MARGIN

INF_MARGIN = 42

INF_MAXREF

INF_MAXREF = 25

INF_MAX_AUTONAME_LEN

INF_MAX_AUTONAME_LEN = 34

INF_MAX_EA

INF_MAX_EA = 20

INF_MD5

INF_MD5 = 76

INF_MIN_EA

INF_MIN_EA = 19

INF_NAMETYPE

INF_NAMETYPE = 35

INF_NETDELTA

INF_NETDELTA = 29

INF_NOPENS

INF_NOPENS = 91

INF_NOTEPAD

INF_NOTEPAD = 85

INF_OMAX_EA

INF_OMAX_EA = 22

INF_OMIN_EA

INF_OMIN_EA = 21

INF_OSTYPE

INF_OSTYPE = 6

INF_OUTFILEENC

INF_OUTFILEENC = 96

INF_OUTFLAGS

INF_OUTFLAGS = 44

INF_PREFFLAG

INF_PREFFLAG = 48

INF_PRIVRANGE

INF_PRIVRANGE = 26

INF_PRIVRANGE_END_EA

INF_PRIVRANGE_END_EA = 28

INF_PRIVRANGE_START_EA

INF_PRIVRANGE_START_EA = 27

INF_PROBLEMS

INF_PROBLEMS = 83

INF_PROCNAME

INF_PROCNAME = 1

INF_REFCMTNUM

INF_REFCMTNUM = 32

INF_SELECTORS

INF_SELECTORS = 84

INF_SHA256

INF_SHA256 = 80

INF_SHORT_DEMNAMES

INF_SHORT_DEMNAMES = 36

INF_SPECSEGS

INF_SPECSEGS = 9

INF_SRCDBG_PATHS

INF_SRCDBG_PATHS = 86

INF_SRCDBG_UNDESIRED

INF_SRCDBG_UNDESIRED = 87

INF_START_CS

INF_START_CS = 14

INF_START_EA

INF_START_EA = 16

INF_START_IP

INF_START_IP = 15

INF_START_SP

INF_START_SP = 17

INF_START_SS

INF_START_SS = 13

INF_STRLIT_BREAK

INF_STRLIT_BREAK = 50

INF_STRLIT_FLAGS

INF_STRLIT_FLAGS = 49

INF_STRLIT_PREF

INF_STRLIT_PREF = 53

INF_STRLIT_SERNUM

INF_STRLIT_SERNUM = 54

INF_STRLIT_ZEROES

INF_STRLIT_ZEROES = 51

INF_STRTYPE

INF_STRTYPE = 52

INF_STR_ENCODINGS

INF_STR_ENCODINGS = 78

INF_TYPE_XREFNUM

INF_TYPE_XREFNUM = 31

INF_VERSION

INF_VERSION = 0

INF_XREFFLAG

INF_XREFFLAG = 33

INF_XREFNUM

INF_XREFNUM = 30

LFLG_64BIT

LFLG_64BIT = 4

LFLG_COMPRESS

LFLG_COMPRESS = 1024

LFLG_DBG_NOPATH

LFLG_DBG_NOPATH = 128

LFLG_FLAT_OFF32

LFLG_FLAT_OFF32 = 16

LFLG_IS_DLL

LFLG_IS_DLL = 8

LFLG_KERNMODE

LFLG_KERNMODE = 2048

LFLG_MSF

LFLG_MSF = 32

LFLG_PACK

LFLG_PACK = 512

LFLG_PC_FLAT

LFLG_PC_FLAT = 2

LFLG_PC_FPP

LFLG_PC_FPP = 1

LFLG_SNAPSHOT

LFLG_SNAPSHOT = 256

LFLG_WIDE_HBF

LFLG_WIDE_HBF = 64

LMT_EMPTY

LMT_EMPTY = 4

LMT_THICK

LMT_THICK = 2

LMT_THIN

LMT_THIN = 1

LN_AUTO

LN_AUTO = 4

LN_NORMAL

LN_NORMAL = 1

LN_PUBLIC

LN_PUBLIC = 2

LN_WEAK

LN_WEAK = 8

MAXADDR

MAXADDR = 18374686479671623680

NM_EA

NM_EA = 6

NM_EA4

NM_EA4 = 7

NM_EA8

NM_EA8 = 8

NM_NAM_EA

NM_NAM_EA = 5

NM_NAM_OFF

NM_NAM_OFF = 2

NM_PTR_EA

NM_PTR_EA = 4

NM_PTR_OFF

NM_PTR_OFF = 1

NM_REL_EA

NM_REL_EA = 3

NM_REL_OFF

NM_REL_OFF = 0

NM_SERIAL

NM_SERIAL = 10

NM_SHORT

NM_SHORT = 9

OFLG_GEN_ASSUME

OFLG_GEN_ASSUME = 512

OFLG_GEN_NULL

OFLG_GEN_NULL = 16

OFLG_GEN_ORG

OFLG_GEN_ORG = 256

OFLG_GEN_TRYBLKS

OFLG_GEN_TRYBLKS = 1024

OFLG_LZERO

OFLG_LZERO = 128

OFLG_PREF_SEG

OFLG_PREF_SEG = 64

OFLG_SHOW_AUTO

OFLG_SHOW_AUTO = 4

OFLG_SHOW_PREF

OFLG_SHOW_PREF = 32

OFLG_SHOW_VOID

OFLG_SHOW_VOID = 2

PREF_FNCOFF

PREF_FNCOFF = 2

PREF_PFXTRUNC

PREF_PFXTRUNC = 8

PREF_SEGADR

PREF_SEGADR = 1

PREF_STACK

PREF_STACK = 4

SCF_ALLCMT

SCF_ALLCMT = 2

SCF_LINNUM

SCF_LINNUM = 8

SCF_NOCMT

SCF_NOCMT = 4

SCF_RPTCMT

SCF_RPTCMT = 1

SCF_SHHID_FUNC

SCF_SHHID_FUNC = 64

SCF_SHHID_ITEM

SCF_SHHID_ITEM = 32

SCF_SHHID_SEGM

SCF_SHHID_SEGM = 128

SCF_TESTMODE

SCF_TESTMODE = 16

STRF_AUTO

STRF_AUTO = 2

STRF_COMMENT

STRF_COMMENT = 16

STRF_GEN

STRF_GEN = 1

STRF_SAVECASE

STRF_SAVECASE = 32

STRF_SERIAL

STRF_SERIAL = 4

STRF_UNICODE

STRF_UNICODE = 8

STT_CUR

STT_CUR = -1

STT_DBG

STT_DBG = 2

STT_MM

STT_MM = 1

STT_VA

STT_VA = 0

SW_SEGXRF

SW_SEGXRF = 1

SW_XRFFNC

SW_XRFFNC = 4

SW_XRFMRK

SW_XRFMRK = 2

SW_XRFVAL

SW_XRFVAL = 8

UA_MAXOP

UA_MAXOP = 8

VLD_AUTO_REPAIR

VLD_AUTO_REPAIR = 1

VLD_DIALOG

VLD_DIALOG = 2

VLD_SILENT

VLD_SILENT = 4

f_AIXAR

f_AIXAR = 24

f_AOUT

f_AOUT = 20

f_AR

f_AR = 16

f_BIN

f_BIN = 2

f_COFF

f_COFF = 10

f_COM

f_COM = 23

f_COM_old

f_COM_old = 1

f_DRV

f_DRV = 3

f_ELF

f_ELF = 18

f_EXE

f_EXE = 22

f_EXE_old

f_EXE_old = 0

f_HEX

f_HEX = 5

f_LE

f_LE = 8

f_LOADER

f_LOADER = 17

f_LX

f_LX = 7

f_MACHO

f_MACHO = 25

f_MD1IMG

f_MD1IMG = 27

f_MEX

f_MEX = 6

f_NLM

f_NLM = 9

f_OMF

f_OMF = 12

f_OMFLIB

f_OMFLIB = 15

f_PE

f_PE = 11

f_PRC

f_PRC = 21

f_PSXOBJ

f_PSXOBJ = 26

f_SREC

f_SREC = 13

f_W32RUN

f_W32RUN = 19

f_WIN

f_WIN = 4

f_ZIP

f_ZIP = 14

Functions

calc_default_idaplace_flags() ‑> int

calc_default_idaplace_flags() -> int Get default disassembly line options.

delinf(tag: inftag_t) ‑> bool

delinf(tag) -> bool Undefine a program specific information

tag: (C++: inftag_t) one of inftag_t constants
return: success

get_dbctx_id() ‑> ssize_t

get_dbctx_id() -> ssize_t Get the current database context ID

return: the database context ID, or -1 if no current database

get_dbctx_qty() ‑> size_t

get_dbctx_qty() -> size_t Get number of database contexts

return: number of database contexts

getinf_str(tag: inftag_t) ‑> qstring *

getinf_str(tag) -> str Get program specific information (a non-scalar value)

tag: (C++: inftag_t) one of inftag_t constants
return: number of bytes stored in the buffer (<0 - not defined)

idainfo_big_arg_align(*args) ‑> bool

inf_big_arg_align(cc) -> bool

cc: cm_t

inf_big_arg_align() -> bool

idainfo_comment_get() ‑> uchar

inf_get_cmt_indent() -> uchar

idainfo_comment_set(_v: uchar) ‑> bool

inf_set_cmt_indent(_v) -> bool

_v: uchar

idainfo_gen_lzero() ‑> bool

inf_gen_lzero() -> bool

idainfo_gen_null() ‑> bool

inf_gen_null() -> bool

idainfo_gen_tryblks() ‑> bool

inf_gen_tryblks() -> bool

idainfo_get_demname_form() ‑> uchar

inf_get_demname_form() -> uchar Get DEMNAM_MASK bits of #demnames.

idainfo_get_pack_mode() ‑> int

inf_get_pack_mode() -> int

idainfo_is_32bit()

idainfo_is_64bit() ‑> bool

inf_is_64bit() -> bool

idainfo_is_auto_enabled() ‑> bool

inf_is_auto_enabled() -> bool

idainfo_is_be() ‑> bool

inf_is_be() -> bool

idainfo_is_dll() ‑> bool

inf_is_dll() -> bool

idainfo_is_flat_off32() ‑> bool

inf_is_flat_off32() -> bool

idainfo_is_graph_view() ‑> bool

inf_is_graph_view() -> bool

idainfo_is_hard_float() ‑> bool

inf_is_hard_float() -> bool

idainfo_is_kernel_mode() ‑> bool

inf_is_kernel_mode() -> bool

idainfo_is_mem_aligned4() ‑> bool

inf_is_mem_aligned4() -> bool

idainfo_is_snapshot() ‑> bool

inf_is_snapshot() -> bool

idainfo_is_wide_high_byte_first() ‑> bool

inf_is_wide_high_byte_first() -> bool

idainfo_like_binary() ‑> bool

inf_like_binary() -> bool

idainfo_line_pref_with_seg() ‑> bool

inf_line_pref_with_seg() -> bool

idainfo_loading_idc() ‑> bool

inf_loading_idc() -> bool

idainfo_map_stkargs() ‑> bool

inf_map_stkargs() -> bool

idainfo_pack_stkargs(*args) ‑> bool

inf_pack_stkargs(cc) -> bool

cc: cm_t

inf_pack_stkargs() -> bool

idainfo_readonly_idb() ‑> bool

inf_readonly_idb() -> bool

idainfo_set_64bit() ‑> bool

inf_set_64bit(_v=True) -> bool

_v: bool

idainfo_set_auto_enabled() ‑> bool