stkvar_ref_t Struct Reference

Reference to a stack variable. Used for mop_S. More...

Public Member Functions

 stkvar_ref_t (mbl_array_t *m, sval_t o)
 
 DECLARE_COMPARISONS (stkvar_ref_t)
 
void swap (stkvar_ref_t &r)
 
member_t * get_stkvar (uval_t *p_off=NULL) const
 Retrieve the referenced stack variable. More...
 

Public Attributes

mbl_array_t *const mba
 Pointer to the parent mbl_array_t object. More...
 
sval_t off
 Offset to the stack variable from the bottom of the stack frame. More...
 

Detailed Description

Reference to a stack variable. Used for mop_S.

Definition at line 2147 of file hexrays.hpp.

Member Function Documentation

◆ get_stkvar()

member_t * stkvar_ref_t::get_stkvar ( uval_t *  p_off = NULL) const

Retrieve the referenced stack variable.

Parameters
p_offif specified, will hold IDA stkoff after the call.
Returns
pointer to the stack variable

Definition at line 9923 of file hexrays.hpp.

References hexdsp.

Member Data Documentation

◆ mba

mbl_array_t* const stkvar_ref_t::mba

Pointer to the parent mbl_array_t object.

We need it in order to retrieve the referenced stack variable. See notes for lvar_ref_t::mba.

Definition at line 2152 of file hexrays.hpp.

◆ off

sval_t stkvar_ref_t::off

Offset to the stack variable from the bottom of the stack frame.

It is called 'decompiler stkoff' and it is different from IDA stkoff. See a note and a picture about 'decompiler stkoff' below.

Definition at line 2157 of file hexrays.hpp.