Trees | Indices | Help |
|
---|
|
IDA Plugin SDK API wrapper: offset
Functions | |||
ea_t |
|
||
ea_t |
|
||
ea_t |
|
||
ea_t |
|
||
bool |
|
||
ea_t |
|
||
ea_t |
|
||
reftype_t |
|
||
ea_t |
|
||
str |
|
||
str |
|
||
int |
|
||
int |
|
||
bool |
|
Variables | |
SWIG_PYTHON_LEGACY_BOOL = 1
|
|
__package__ = None
|
Function Details |
Add xrefs for a reference from the given instruction (\insn_t{ea}). This function creates a cross references to the target and the base. 'insn_t::add_off_drefs()' calls this function to create xrefs for 'offset' operand.
|
Calculate the value of the reference base.
|
Try to calculate the offset base This function takes into account the fixup information, current ds and cs values.
|
Try to calculate the offset base. 2 bases are checked: current ds and cs. If fails, return 'BADADDR'
|
Calculate the target and base addresses of an offset expression. The calculated target and base addresses are returned in the locations pointed by 'base' and 'target'. In case 'ri.base' is 'BADADDR' , the function calculates the offset base address from the referencing instruction/data address. The target address is copied from ri.target. If ri.target is 'BADADDR' then the target is calculated using the base address and 'opval'. This function also checks if 'opval' matches the full value of the reference and takes in account the memory-mapping.
|
calc_target(_from, ea, n, opval) -> ea_t Calculates the target, using the provided 'refinfo_t' .
|
Does the specified address contain a valid OFF32 value?. For symbols in special segments the displacement is not taken into account. If yes, then the target address of OFF32 will be returned. If not, then 'BADADDR' is returned.
|
Get default reference type depending on the segment.
|
Get offset base value
|
See 'get_offset_expression()'
|
Get offset expression (in the form "offset name+displ"). This function uses offset translation function (\ph{translate}) if your IDP module has such a function. Translation function is used to map linear addresses in the program (only for offsets).Example: suppose we have instruction at linear address 0x00011000: \v{mov ax, [bx+7422h]} and at ds:7422h: \v{array dw ...} We want to represent the second operand with an offset expression, so then we call: \v{ get_offset_expresion(0x001100, 1, 0x001102, 0x7422, buf); | | | | | | | | | +output buffer | | | +value of offset expression | | +address offset value in the instruction | +the second operand +address of instruction } and the function will return a colored string: \v{offset array}
|
See 'op_offset_ex()'
|
Convert operand to a reference. To delete an offset, use 'clr_op_type()' function.
|
Convert operand to a reference with the default reference type.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 11 15:05:11 2019 | http://epydoc.sourceforge.net |