IDA C++ SDK 9.2
Loading...
Searching...
No Matches
stkvar_ref_t Struct Reference

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)
 HEXRAYS_MEMORY_ALLOCATION_FUNCS () void swap(stkvar_ref_t &r)
ssize_t hexapi get_stkvar (udm_t *udm=nullptr, uval_t *p_idaoff=nullptr) const
 Retrieve the referenced stack variable.

Public Attributes

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

Detailed Description

Reference to a stack variable. Used for mop_S.

Constructor & Destructor Documentation

◆ stkvar_ref_t()

stkvar_ref_t::stkvar_ref_t ( mba_t * m,
sval_t o )
inline

Member Function Documentation

◆ DECLARE_COMPARISONS()

stkvar_ref_t::DECLARE_COMPARISONS ( stkvar_ref_t )

◆ HEXRAYS_MEMORY_ALLOCATION_FUNCS()

stkvar_ref_t::HEXRAYS_MEMORY_ALLOCATION_FUNCS ( ) &
inline

◆ get_stkvar()

ssize_t stkvar_ref_t::get_stkvar ( udm_t * udm = nullptr,
uval_t * p_idaoff = nullptr ) const
inline

Retrieve the referenced stack variable.

Parameters
[out]udmstkvar, may be nullptr
p_idaoffif specified, will hold IDA stkoff after the call.
Returns
index of stkvar in the frame or -1

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.

◆ 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.


The documentation for this struct was generated from the following file: