Module idc

This file contains IDA built-in function declarations and internal bit definitions. Each byte of the program has 32-bit flags (low 8 bits keep the byte value). These 32 bits are used in get_full_flags/get_flags functions.

This file is subject to change without any notice. Future versions of IDA may use other definitions.

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

ADDSEG_FILLGAP

ADDSEG_FILLGAP = 16

ADDSEG_NOSREG

ADDSEG_NOSREG = 1

ADDSEG_NOTRUNC

ADDSEG_NOTRUNC = 4

ADDSEG_OR_DIE

ADDSEG_OR_DIE = 2

ADDSEG_QUIET

ADDSEG_QUIET = 8

ADDSEG_SPARSE

ADDSEG_SPARSE = 32

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

APPT_16BIT

APPT_16BIT = 128

APPT_1THREAD

APPT_1THREAD = 32

APPT_32BIT

APPT_32BIT = 256

APPT_CONSOLE

APPT_CONSOLE = 1

APPT_DRIVER

APPT_DRIVER = 16

APPT_GRAPHIC

APPT_GRAPHIC = 2

APPT_LIBRARY

APPT_LIBRARY = 8

APPT_MTHREAD

APPT_MTHREAD = 64

APPT_PROGRAM

APPT_PROGRAM = 4

AP_ALLOWDUPS

AP_ALLOWDUPS = 1

AP_ARRAY

AP_ARRAY = 8

AP_IDXBASEMASK

AP_IDXBASEMASK = 240

AP_IDXBIN

AP_IDXBIN = 48

AP_IDXDEC

AP_IDXDEC = 0

AP_IDXHEX

AP_IDXHEX = 16

AP_IDXOCT

AP_IDXOCT = 32

AP_INDEX

AP_INDEX = 4

AP_SIGNED

AP_SIGNED = 2

AR_LONG

AR_LONG = 65

AR_STR

AR_STR = 83

AU_CODE

AU_CODE = 20

AU_FINAL

AU_FINAL = 200

AU_LIBF

AU_LIBF = 60

AU_PROC

AU_PROC = 30

AU_UNK

AU_UNK = 10

AU_USED

AU_USED = 40

BADADDR

BADADDR = 18446744073709551615

BADSEL

BADSEL = 18446744073709551615

BPLT_ABS

BPLT_ABS = 0

BPLT_REL

BPLT_REL = 1

BPLT_SYM

BPLT_SYM = 2

BPTATTR_COND

BPTATTR_COND = 6

BPTATTR_COUNT

BPTATTR_COUNT = 4

BPTATTR_EA

BPTATTR_EA = 1

BPTATTR_FLAGS

BPTATTR_FLAGS = 5

BPTATTR_PID

BPTATTR_PID = 7

BPTATTR_SIZE

BPTATTR_SIZE = 2

BPTATTR_TID

BPTATTR_TID = 8

BPTATTR_TYPE

BPTATTR_TYPE = 3

BPTCK_ACT

BPTCK_ACT = 2

BPTCK_NO

BPTCK_NO = 0

BPTCK_NONE

BPTCK_NONE = -1

BPTCK_YES

BPTCK_YES = 1

BPT_BRK

BPT_BRK = 1

BPT_DEFAULT

BPT_DEFAULT = 12

BPT_ENABLED

BPT_ENABLED = 8

BPT_EXEC

BPT_EXEC = 8

BPT_LOWCND

BPT_LOWCND = 16

BPT_RDWR

BPT_RDWR = 3

BPT_SOFT

BPT_SOFT = 4

BPT_TRACE

BPT_TRACE = 2

BPT_TRACEON

BPT_TRACEON = 32

BPT_TRACE_BBLK

BPT_TRACE_BBLK = 256

BPT_TRACE_FUNC

BPT_TRACE_FUNC = 128

BPT_TRACE_INSN

BPT_TRACE_INSN = 64

BPT_UPDMEM

BPT_UPDMEM = 4

BPT_WRITE

BPT_WRITE = 1

BPU_1B

BPU_1B = 1

BPU_2B

BPU_2B = 2

BPU_4B

BPU_4B = 4

BREAKPOINT

BREAKPOINT = 16

CHART_GEN_GDL

CHART_GEN_GDL = 16384

CHART_NOLIBFUNCS

CHART_NOLIBFUNCS = 1024

CHART_PRINT_NAMES

CHART_PRINT_NAMES = 4096

CHART_WINGRAPH

CHART_WINGRAPH = 32768

CIC_FUNC

CIC_FUNC = 2

CIC_ITEM

CIC_ITEM = 1

CIC_SEGM

CIC_SEGM = 3

COMP_BC

COMP_BC = 2

COMP_BP

COMP_BP = 8

COMP_GNU

COMP_GNU = 6

COMP_MASK

COMP_MASK = 15

COMP_MS

COMP_MS = 1

COMP_UNK

COMP_UNK = 0

COMP_VISAGE

COMP_VISAGE = 7

COMP_WATCOM

COMP_WATCOM = 3

DBFL_BAK

DBFL_BAK = 4

DBG_ERROR

DBG_ERROR = -1

DBG_TIMEOUT

DBG_TIMEOUT = 0

DEFCOLOR

DEFCOLOR = 4294967295

DELIT_DELNAMES

DELIT_DELNAMES = 2

DELIT_EXPAND

DELIT_EXPAND = 1

DELIT_SIMPLE

DELIT_SIMPLE = 0

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

DOPT_BPT_MSGS

DOPT_BPT_MSGS = 16

DOPT_ENTRY_BPT

DOPT_ENTRY_BPT = 4096

DOPT_EXCDLG

DOPT_EXCDLG = 24576

DOPT_INFO_BPT

DOPT_INFO_BPT = 512

DOPT_INFO_MSGS

DOPT_INFO_MSGS = 256

DOPT_LIB_BPT

DOPT_LIB_BPT = 128

DOPT_LIB_MSGS

DOPT_LIB_MSGS = 64

DOPT_LOAD_DINFO

DOPT_LOAD_DINFO = 32768

DOPT_REAL_MEMORY

DOPT_REAL_MEMORY = 1024

DOPT_REDO_STACK

DOPT_REDO_STACK = 2048

DOPT_SEGM_MSGS

DOPT_SEGM_MSGS = 1

DOPT_START_BPT

DOPT_START_BPT = 2

DOPT_THREAD_BPT

DOPT_THREAD_BPT = 8

DOPT_THREAD_MSGS

DOPT_THREAD_MSGS = 4

DSTATE_NOTASK

DSTATE_NOTASK = 0

DSTATE_RUN

DSTATE_RUN = 1

DSTATE_RUN_WAIT_ATTACH

DSTATE_RUN_WAIT_ATTACH = 2

DSTATE_RUN_WAIT_END

DSTATE_RUN_WAIT_END = 3

DSTATE_SUSP

DSTATE_SUSP = -1

DT_TYPE

DT_TYPE = 4026531840

ENFL_REGEX

ENFL_REGEX = 1

EXCDLG_ALWAYS

EXCDLG_ALWAYS = 24576

EXCDLG_NEVER

EXCDLG_NEVER = 0

EXCDLG_UNKNOWN

EXCDLG_UNKNOWN = 8192

EXCEPTION

EXCEPTION = 64

EXC_BREAK

EXC_BREAK = 1

EXC_HANDLE

EXC_HANDLE = 2

E_NEXT

E_NEXT = 2000

E_PREV

E_PREV = 1000

FF_0CHAR

FF_0CHAR = 3145728

FF_0ENUM

FF_0ENUM = 8388608

FF_0FOP

FF_0FOP = 9437184

FF_0NUMB

FF_0NUMB = 6291456

FF_0NUMD

FF_0NUMD = 2097152

FF_0NUMH

FF_0NUMH = 1048576

FF_0NUMO

FF_0NUMO = 7340032

FF_0OFF

FF_0OFF = 5242880

FF_0SEG

FF_0SEG = 4194304

FF_0STK

FF_0STK = 11534336

FF_0STRO

FF_0STRO = 10485760

FF_0VOID

FF_0VOID = 0

FF_1CHAR

FF_1CHAR = 50331648

FF_1ENUM

FF_1ENUM = 134217728

FF_1FOP

FF_1FOP = 150994944

FF_1NUMB

FF_1NUMB = 100663296

FF_1NUMD

FF_1NUMD = 33554432

FF_1NUMH

FF_1NUMH = 16777216

FF_1NUMO

FF_1NUMO = 117440512

FF_1OFF

FF_1OFF = 83886080

FF_1SEG

FF_1SEG = 67108864

FF_1STK

FF_1STK = 184549376

FF_1STRO

FF_1STRO = 167772160

FF_1VOID

FF_1VOID = 0

FF_ALIGN

FF_ALIGN = 2952790016

FF_ANYNAME

FF_ANYNAME = 49152

FF_BYTE

FF_BYTE = 0

FF_CODE

FF_CODE = 1536

FF_COMM

FF_COMM = 2048

FF_DATA

FF_DATA = 1024

FF_DOUBLE

FF_DOUBLE = 2415919104

FF_DWORD

FF_DWORD = 536870912

FF_FLOAT

FF_FLOAT = 2147483648

FF_FLOW

FF_FLOW = 65536

FF_FUNC

FF_FUNC = 268435456

FF_IMMD

FF_IMMD = 1073741824

FF_IVL

FF_IVL = 256

FF_JUMP

FF_JUMP = 2147483648

FF_LABL

FF_LABL = 32768

FF_LINE

FF_LINE = 8192

FF_NAME

FF_NAME = 16384

FF_OWORD

FF_OWORD = 1879048192

FF_PACKREAL

FF_PACKREAL = 2684354560

FF_QWORD

FF_QWORD = 805306368

FF_REF

FF_REF = 4096

FF_STRLIT

FF_STRLIT = 1342177280

FF_STRUCT

FF_STRUCT = 1610612736

FF_TAIL

FF_TAIL = 512

FF_TBYTE

FF_TBYTE = 1073741824

FF_UNK

FF_UNK = 0

FF_WORD

FF_WORD = 268435456

FIXUPF_CREATED

FIXUPF_CREATED = 8

FIXUPF_EXTDEF

FIXUPF_EXTDEF = 2

FIXUPF_REL

FIXUPF_REL = 1

FIXUPF_UNUSED

FIXUPF_UNUSED = 4

FIXUP_CUSTOM

FIXUP_CUSTOM = 32768

FIXUP_HI16

FIXUP_HI16 = 7

FIXUP_HI8

FIXUP_HI8 = 6

FIXUP_LOW16

FIXUP_LOW16 = 9

FIXUP_LOW8

FIXUP_LOW8 = 8

FIXUP_OFF16

FIXUP_OFF16 = 1

FIXUP_OFF32

FIXUP_OFF32 = 4

FIXUP_OFF64

FIXUP_OFF64 = 12

FIXUP_OFF8

FIXUP_OFF8 = 13

FIXUP_PTR32

FIXUP_PTR32 = 3

FIXUP_PTR48

FIXUP_PTR48 = 5

FIXUP_SEG16

FIXUP_SEG16 = 2

FT_AIXAR

FT_AIXAR = 24

FT_AOUT

FT_AOUT = 20

FT_AR

FT_AR = 16

FT_BIN

FT_BIN = 2

FT_COFF

FT_COFF = 10

FT_COM

FT_COM = 23

FT_COM_OLD

FT_COM_OLD = 1

FT_DRV

FT_DRV = 3

FT_ELF

FT_ELF = 18

FT_EXE

FT_EXE = 22

FT_EXE_OLD

FT_EXE_OLD = 0

FT_HEX

FT_HEX = 5

FT_LE

FT_LE = 8

FT_LOADER

FT_LOADER = 17

FT_LX

FT_LX = 7

FT_MACHO

FT_MACHO = 25

FT_MEX

FT_MEX = 6

FT_NLM

FT_NLM = 9

FT_OMF

FT_OMF = 12

FT_OMFLIB

FT_OMFLIB = 15

FT_PE

FT_PE = 11

FT_PRC

FT_PRC = 21

FT_SREC

FT_SREC = 13

FT_W32RUN

FT_W32RUN = 19

FT_WIN

FT_WIN = 4

FT_ZIP

FT_ZIP = 14

FUNCATTR_ARGSIZE

FUNCATTR_ARGSIZE = 48

FUNCATTR_COLOR

FUNCATTR_COLOR = 64

FUNCATTR_END

FUNCATTR_END = 8

FUNCATTR_FLAGS

FUNCATTR_FLAGS = 16

FUNCATTR_FPD

FUNCATTR_FPD = 56

FUNCATTR_FRAME

FUNCATTR_FRAME = 24

FUNCATTR_FRREGS

FUNCATTR_FRREGS = 40

FUNCATTR_FRSIZE

FUNCATTR_FRSIZE = 32

FUNCATTR_OWNER

FUNCATTR_OWNER = 24

FUNCATTR_REFQTY

FUNCATTR_REFQTY = 32

FUNCATTR_START

FUNCATTR_START = 0

FUNC_BOTTOMBP

FUNC_BOTTOMBP = 256

FUNC_FAR

FUNC_FAR = 2

FUNC_FRAME

FUNC_FRAME = 16

FUNC_HIDDEN

FUNC_HIDDEN = 64

FUNC_LIB

FUNC_LIB = 4

FUNC_LUMINA

FUNC_LUMINA = 65536

FUNC_NORET

FUNC_NORET = 1

FUNC_NORET_PENDING