|
IDA C++ SDK 9.2
|
Functions | |
| idaman bool ida_export | define_stkvar_ea (ea_t func_ea, const char *name, sval_t off, const tinfo_t &tif, const struct value_repr_t *repr=nullptr) |
| Define/redefine a stack variable. | |
| idaman bool ida_export | add_frame_member_ea (ea_t func_ea, const char *name, uval_t offset, const tinfo_t &tif, const struct value_repr_t *repr=nullptr, uint etf_flags=0) |
| Add member to the frame type. | |
| idaman bool ida_export | set_frame_member_type_ea (ea_t func_ea, uval_t offset, const tinfo_t &tif, const struct value_repr_t *repr=nullptr, uint etf_flags=0) |
| Change type of the frame member. | |
| idaman bool ida_export | delete_frame_members_ea (ea_t func_ea, uval_t start_offset, uval_t end_offset) |
| Delete frame members. | |
| idaman ssize_t ida_export | build_stkvar_name_ea (qstring *buf, ea_t func_ea, sval_t v) |
| Build automatic stack variable name. | |
| idaman ea_t ida_export | calc_stkvar_struc_offset_ea (ea_t func_ea, const insn_t &insn, int n) |
| Calculate offset of stack variable in the frame structure. | |
| idaman sval_t ida_export | calc_frame_offset_ea (ea_t func_ea, sval_t off, const insn_t *insn=nullptr, const op_t *op=nullptr) |
| Calculate the offset of stack variable in the frame. | |
| idaman int ida_export | delete_wrong_frame_info_ea (ea_t func_ea, bool idaapi should_reanalyze(const insn_t &insn)) |
| Find and delete wrong frame info. | |
| idaman void ida_export | build_stkvar_xrefs_ea (xreflist_t *out, ea_t func_ea, uval_t start_offset, uval_t end_offset) |
| Fill 'out' with a list of all the xrefs from a function to the specified range of the function's stack frame. | |
| idaman bool ida_export define_stkvar_ea | ( | ea_t | func_ea, |
| const char * | name, | ||
| sval_t | off, | ||
| const tinfo_t & | tif, | ||
| const struct value_repr_t * | repr = nullptr ) |
Define/redefine a stack variable.
| func_ea | any address of the function |
| name | variable name, nullptr means autogenerate a name |
| off | offset of the stack variable in the frame. negative values denote local variables, positive - function arguments. |
| tif | variable type |
| repr | variable representation |
| idaman bool ida_export add_frame_member_ea | ( | ea_t | func_ea, |
| const char * | name, | ||
| uval_t | offset, | ||
| const tinfo_t & | tif, | ||
| const struct value_repr_t * | repr = nullptr, | ||
| uint | etf_flags = 0 ) |
Add member to the frame type.
| func_ea | any address of the function |
| name | variable name, nullptr means autogenerate a name |
| offset | member offset in the frame structure, in bytes |
| tif | variable type |
| repr | variable representation |
| etf_flags |
| idaman bool ida_export set_frame_member_type_ea | ( | ea_t | func_ea, |
| uval_t | offset, | ||
| const tinfo_t & | tif, | ||
| const struct value_repr_t * | repr = nullptr, | ||
| uint | etf_flags = 0 ) |
Change type of the frame member.
| func_ea | any address of the function |
| offset | member offset in the frame structure, in bytes |
| tif | variable type |
| repr | variable representation |
| etf_flags |
| idaman bool ida_export delete_frame_members_ea | ( | ea_t | func_ea, |
| uval_t | start_offset, | ||
| uval_t | end_offset ) |
Delete frame members.
| func_ea | any address of the function |
| start_offset | member offset to start deletion from, in bytes |
| end_offset | member offset which not included in the deletion, in bytes |
Build automatic stack variable name.
| buf | pointer to buffer |
| func_ea | any address of the function |
| v | value of variable offset |
Calculate offset of stack variable in the frame structure.
| func_ea | any address of the function |
| insn | the instruction |
| n | 0..#UA_MAXOP-1 operand number -1 if error, return #BADADDR |
| idaman sval_t ida_export calc_frame_offset_ea | ( | ea_t | func_ea, |
| sval_t | off, | ||
| const insn_t * | insn = nullptr, | ||
| const op_t * | op = nullptr ) |
Calculate the offset of stack variable in the frame.
| func_ea | any address of the function |
| off | the offset relative to stack pointer or frame pointer |
| insn | the instruction |
| op | the operand |
| idaman int ida_export delete_wrong_frame_info_ea | ( | ea_t | func_ea, |
| bool idaapi | should_reanalyzeconst insn_t &insn ) |
Find and delete wrong frame info.
Namely, we delete:
We also plan to reanalyze instruction with the stack frame references
| func_ea | any address of the function |
| should_reanalyze | callback to determine which instructions to reanalyze |
| idaman void ida_export build_stkvar_xrefs_ea | ( | xreflist_t * | out, |
| ea_t | func_ea, | ||
| uval_t | start_offset, | ||
| uval_t | end_offset ) |
Fill 'out' with a list of all the xrefs from a function to the specified range of the function's stack frame.
| out | the list of xrefs to fill |
| func_ea | any address of the function |
| start_offset | start frame structure offset, in bytes |
| end_offset | end frame structure offset, in bytes |