Latest available version: IDA and decompilers v8.3.230608 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon

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

#include <hexrays.hpp>

Public Member Functions

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

Public Attributes

mba_t *const mba
 Pointer to the parent mba_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 2304 of file hexrays.hpp.

Constructor & Destructor Documentation

◆ stkvar_ref_t()

stkvar_ref_t::stkvar_ref_t ( mba_t m,
sval_t  o 
)

Definition at line 2316 of file hexrays.hpp.

Member Function Documentation

◆ get_stkvar()

member_t * stkvar_ref_t::get_stkvar ( uval_t *  p_off = nullptr) 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 10468 of file hexrays.hpp.

◆ swap()

void stkvar_ref_t::swap ( stkvar_ref_t r)

Definition at line 2319 of file hexrays.hpp.

Member Data Documentation

◆ mba

mba_t* const stkvar_ref_t::mba

Pointer to the parent mba_t object.

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

Definition at line 2309 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 2314 of file hexrays.hpp.