Module ida_name
[frames] | no frames]

Module ida_name

IDA Plugin SDK API wrapper: name

Classes
  ea_name_t
Proxy of C++ ea_name_t class
  NearestName
Utility class to help find the nearest name in a given ea/name dictionary
Functions
qstring
get_name(ea)
qstring
get_colored_name(ea)
bool
set_name(ea, name, flags=0)
bool
force_name(ea, name, flags=0)
bool
del_global_name(ea)
bool
del_local_name(ea)
bool
set_dummy_name(_from, ea)
bool
make_name_auto(ea)
bool
make_name_user(ea)
bool
is_valid_cp(cp, kind, data=None)
 
set_cp_validity(kind, cp, endcp=wchar32_t(-1), valid=True)
bool
is_ident_cp(cp)
bool
is_strlit_cp(cp, specific_ranges=None)
bool
is_visible_cp(cp)
bool
is_ident(name)
bool
is_uname(name)
bool
is_valid_typename(name)
ssize_t
extract_name(line, x)
 
hide_name(ea)
 
show_name(ea)
ea_t
get_name_ea(_from, name)
ea_t
get_name_base_ea(_from, to)
int
get_name_value(_from, name)
qstring
get_visible_name(ea, gtn_flags=0)
qstring
get_short_name(ea, gtn_flags=0)
qstring
get_long_name(ea, gtn_flags=0)
qstring
get_colored_short_name(ea, gtn_flags=0)
qstring
get_colored_long_name(ea, gtn_flags=0)
qstring
get_demangled_name(ea, inhibitor, demform, gtn_flags=0)
qstring
get_colored_demangled_name(ea, inhibitor, demform, gtn_flags=0)
color_t
get_name_color(_from, ea)
ssize_t
get_name_expr(_from, n, ea, off, flags=0x0001)
ssize_t
get_nice_colored_name(ea, flags=0)
flags_t
append_struct_fields(disp, n, path, flags, delta, appzero)
bool
is_public_name(ea)
 
make_name_public(ea)
 
make_name_non_public(ea)
bool
is_weak_name(ea)
 
make_name_weak(ea)
 
make_name_non_weak(ea)
size_t
get_nlist_size()
size_t
get_nlist_idx(ea)
bool
is_in_nlist(ea)
ea_t
get_nlist_ea(idx)
char const *
get_nlist_name(idx)
 
rebuild_nlist()
 
reorder_dummy_names()
bool
set_debug_name(ea, name)
ssize_t
get_debug_name(ea_ptr, how)
 
del_debug_names(ea1, ea2)
ea_t
get_debug_name_ea(name)
int32
demangle_name(name, disable_mask, demreq=DQT_FULL)
bool
is_name_defined_locally(pfn, name, ignore_name_def, ea1=BADADDR, ea2=BADADDR)
bool
cleanup_name(ea, name, flags=0)
PyObject *
get_debug_names(ea1, ea2)
qstring
get_ea_name(ea, gtn_flags=0)
PyObject *
validate_name(name, type, flags=0)
 
calc_gtn_flags(fromaddr, ea)
Calculate flags for get_ea_name() function
Variables
  MAXNAMELEN = 512
  FUNC_IMPORT_PREFIX = '__imp_'
  SN_CHECK = 0
  SN_NOCHECK = 1
  SN_PUBLIC = 2
  SN_NON_PUBLIC = 4
  SN_WEAK = 8
  SN_NON_WEAK = 16
  SN_AUTO = 32
  SN_NON_AUTO = 64
  SN_NOLIST = 128
  SN_NOWARN = 256
  SN_LOCAL = 512
  SN_IDBENC = 1024
  SN_FORCE = 2048
  URK_NameChars = 1
  URK_MangleChars = 2
  URK_StrlitChars = 4
  URK_TypeNameChars = 8
  VNT_IDENT = 3
  VNT_TYPE = 8
  VNT_UDTMEM = 1
  VNT_STRLIT = 4
  VNT_VISIBLE = 1
  NT_NONE = 0
  NT_BYTE = 1
  NT_LOCAL = 2
  NT_STKVAR = 3
  NT_ENUM = 4
  NT_ABS = 5
  NT_SEG = 6
  NT_STROFF = 7
  NT_BMASK = 8
  NT_REGVAR = 9
  GN_VISIBLE = 1
  GN_COLORED = 2
  GN_DEMANGLED = 4
  GN_STRICT = 8
  GN_SHORT = 16
  GN_LONG = 32
  GN_LOCAL = 64
  GN_ISRET = 128
  GN_NOT_ISRET = 256
  GETN_APPZERO = 1
  GETN_NOFIXUP = 2
  GETN_NODUMMY = 4
  GNCN_NOSEG = 1
  GNCN_NOCOLOR = 2
  GNCN_NOLABEL = 4
  GNCN_NOFUNC = 8
  GNCN_SEG_FUNC = 16
  GNCN_SEGNUM = 32
  GNCN_REQFUNC = 64
  GNCN_REQNAME = 128
  GNCN_NODBGNM = 256
  GNCN_PREFDBG = 512
  DEBNAME_EXACT = 0
  DEBNAME_LOWER = 1
  DEBNAME_UPPER = 2
  DEBNAME_NICE = 3
  DQT_NPURGED_8 = -8
  DQT_NPURGED_4 = -4
  DQT_NPURGED_2 = -2
  DQT_COMPILER = 0
  DQT_NAME_TYPE = 1
  DQT_FULL = 2
  CN_KEEP_TRAILING__DIGITS = 1
  cvar = _ida_name.cvar
  ignore_none = 0
  ignore_regvar = 1
  ignore_llabel = 2
  ignore_stkvar = 3
  ignore_glabel = 4
  __package__ = None
Function Details

calc_gtn_flags(fromaddr, ea)

 

Calculate flags for get_ea_name() function

Parameters:
  • fromaddr - the referring address. May be BADADDR.
  • ea - linear address
Returns:
flags