IDAPython 9.0
Loading...
Searching...
No Matches
ida_offset.py File Reference

Namespaces

namespace  ida_offset
 Functions that deal with offsets.
 

Functions

"reftype_t" get_default_reftype ("ea_t" ea)
 get_default_reftype(ea) -> reftype_t Get default reference type depending on the segment.
 
"bool" op_offset_ex ("ea_t" ea, "int" n, "refinfo_t" ri)
 op_offset_ex(ea, n, ri) -> bool Convert operand to a reference.
 
"bool" op_offset (*args)
 op_offset(ea, n, type_and_flags, target=BADADDR, base=0, tdelta=0) -> bool See op_offset_ex()
 
"bool" op_plain_offset ("ea_t" ea, "int" n, "ea_t" base)
 op_plain_offset(ea, n, base) -> bool Convert operand to a reference with the default reference type.
 
"ea_t" get_offbase ("ea_t" ea, "int" n)
 get_offbase(ea, n) -> ea_t Get offset base value
 
"qstring *" get_offset_expression ("ea_t" ea, "int" n, "ea_t" _from, "adiff_t" offset, "int" getn_flags=0)
 get_offset_expression(ea, n, _from, offset, getn_flags=0) -> int Get offset expression (in the form "offset name+displ").
 
"qstring *" get_offset_expr ("ea_t" ea, "int" n, "refinfo_t" ri, "ea_t" _from, "adiff_t" offset, "int" getn_flags=0)
 get_offset_expr(ea, n, ri, _from, offset, getn_flags=0) -> int See get_offset_expression()
 
"ea_t" can_be_off32 ("ea_t" ea)
 can_be_off32(ea) -> ea_t Does the specified address contain a valid OFF32 value?.
 
"ea_t" calc_offset_base ("ea_t" ea, "int" n)
 calc_offset_base(ea, n) -> ea_t Try to calculate the offset base This function takes into account the fixup information, current ds and cs values.
 
"ea_t" calc_probable_base_by_value ("ea_t" ea, "uval_t" off)
 calc_probable_base_by_value(ea, off) -> ea_t Try to calculate the offset base.
 
"bool" calc_reference_data ("ea_t *" target, "ea_t *" base, "ea_t" _from, "refinfo_t" ri, "adiff_t" opval)
 calc_reference_data(target, base, _from, ri, opval) -> bool Calculate the target and base addresses of an offset expression.
 
"ea_t" add_refinfo_dref ("insn_t const &" insn, "ea_t" _from, "refinfo_t" ri, "adiff_t" opval, "dref_t" type, "int" opoff)
 add_refinfo_dref(insn, _from, ri, opval, type, opoff) -> ea_t Add xrefs for a reference from the given instruction ( insn_t::ea).
 
"ea_t" calc_target (*args)
 calc_target(_from, opval, ri) -> ea_t Retrieve refinfo_t structure and calculate the target.
 
"ea_t" calc_basevalue ("ea_t" target, "ea_t" base)
 calc_basevalue(target, base) -> ea_t Calculate the value of the reference base.