Module ida_segment
[frames] | no frames]

Module ida_segment

IDA Plugin SDK API wrapper: segment

Classes
  segment_t
Proxy of C++ segment_t class
  lock_segment
Proxy of C++ lock_segment class
Functions
bool
is_visible_segm(s)
bool
is_finally_visible_segm(s)
 
set_visible_segm(s, visible)
bool
is_spec_segm(seg_type)
bool
is_spec_ea(ea)
 
lock_segm(segm, lock)
bool
is_segm_locked(segm)
bool
getn_selector(n)
int
get_selector_qty()
sel_t
setup_selector(segbase)
sel_t
allocate_selector(segbase)
sel_t
find_free_selector()
int
set_selector(selector, paragraph)
 
del_selector(selector)
ea_t
sel2para(selector)
ea_t
sel2ea(selector)
sel_t
find_selector(base)
segment_t
get_segm_by_sel(selector)
bool
add_segm_ex(s, name, sclass, flags)
bool
add_segm(para, start, end, name, sclass, flags=0)
bool
del_segm(ea, flags)
int
get_segm_qty()
segment_t
getseg(ea)
segment_t
getnseg(n)
int
get_segm_num(ea)
segment_t
get_next_seg(ea)
segment_t
get_prev_seg(ea)
segment_t
get_first_seg()
segment_t
get_last_seg()
segment_t
get_segm_by_name(name)
bool
set_segm_end(ea, newend, flags)
bool
set_segm_start(ea, newstart, flags)
bool
move_segm_start(ea, newstart, mode)
int
move_segm(s, to, flags=0)
int
change_segment_status(s, is_deb_segm)
bool
take_memory_snapshot(only_loader_segs)
bool
is_miniidb()
bool
set_segm_base(s, newbase)
int
set_group_selector(grp, sel)
sel_t
get_group_selector(grpsel)
bool
add_segment_translation(segstart, mappedseg)
bool
set_segment_translations(segstart, transmap)
 
del_segment_translations(segstart)
ssize_t
get_segment_translations(transmap, segstart)
ssize_t
get_segment_cmt(s, repeatable)
 
set_segment_cmt(s, cmt, repeatable)
 
std_out_segm_footer(ctx, seg)
int
set_segm_name(s, name, flags=0)
ssize_t
get_segm_name(s, flags=0)
ssize_t
get_visible_segm_name(s)
ssize_t
get_segm_class(s)
int
set_segm_class(s, sclass, flags=0)
uchar
segtype(ea)
char const *
get_segment_alignment(align)
char const *
get_segment_combination(comb)
ea_t
get_segm_para(s)
ea_t
get_segm_base(s)
bool
set_segm_addressing(s, bitness)
bool
update_segm(s)
adiff_t
segm_adjust_diff(s, delta)
ea_t
segm_adjust_ea(s, ea)
sel_t
get_defsr(s, reg)
 
set_defsr(s, reg, value)
int
rebase_program(delta, flags)
Variables
  SREG_NUM = 16
  saAbs = 0
  saRelByte = 1
  saRelWord = 2
  saRelPara = 3
  saRelPage = 4
  saRelDble = 5
  saRel4K = 6
  saGroup = 7
  saRel32Bytes = 8
  saRel64Bytes = 9
  saRelQword = 10
  saRel128Bytes = 11
  saRel512Bytes = 12
  saRel1024Bytes = 13
  saRel2048Bytes = 14
  saRel_MAX_ALIGN_CODE = 14
  scPriv = 0
  scGroup = 1
  scPub = 2
  scPub2 = 4
  scStack = 5
  scCommon = 6
  scPub3 = 7
  sc_MAX_COMB_CODE = 7
  SEGPERM_EXEC = 1
  SEGPERM_WRITE = 2
  SEGPERM_READ = 4
  SEGPERM_MAXVAL = 7
  SEG_MAX_BITNESS_CODE = 2
  SFL_COMORG = 1
  SFL_OBOK = 2
  SFL_HIDDEN = 4
  SFL_DEBUG = 8
  SFL_LOADER = 16
  SFL_HIDETYPE = 32
  SEG_NORM = 0
  SEG_XTRN = 1
  SEG_CODE = 2
  SEG_DATA = 3
  SEG_IMP = 4
  SEG_GRP = 6
  SEG_NULL = 7
  SEG_UNDF = 8
  SEG_BSS = 9
  SEG_ABSSYM = 10
  SEG_COMM = 11
  SEG_IMEM = 12
  SEG_MAX_SEGTYPE_CODE = 12
  ADDSEG_NOSREG = 1
  ADDSEG_OR_DIE = 2
  ADDSEG_NOTRUNC = 4
  ADDSEG_QUIET = 8
  ADDSEG_FILLGAP = 16
  ADDSEG_SPARSE = 32
  ADDSEG_NOAA = 64
  ADDSEG_IDBENC = 128
  SEGMOD_KILL = 1
  SEGMOD_KEEP = 2
  SEGMOD_SILENT = 4
  SEGMOD_KEEP0 = 8
  SEGMOD_KEEPSEL = 16
  SEGMOD_NOMOVE = 32
  SEGMOD_SPARSE = 64
  MSF_SILENT = 1
  MSF_NOFIX = 2
  MSF_LDKEEP = 4
  MSF_FIXONCE = 8
  MFS_NETMAP = 16
  MSF_PRIORITY = 32
  MOVE_SEGM_OK = 0
  MOVE_SEGM_PARAM = -1
  MOVE_SEGM_ROOM = -2
  MOVE_SEGM_IDP = -3
  MOVE_SEGM_CHUNK = -4
  MOVE_SEGM_LOADER = -5
  MOVE_SEGM_ODD = -6
  MOVE_SEGM_ORPHAN = -7
  CSS_OK = 0
  CSS_NODBG = -1
  CSS_NORANGE = -2
  CSS_NOMEM = -3
  CSS_BREAK = -4
  MAX_GROUPS = 8
  MAX_SEGM_TRANSLATIONS = 64
  __package__ = None