Chains of one block. More...
#include <hexrays.hpp>
Public Member Functions | |
const chain_t * | get_reg_chain (mreg_t reg, int width=1) const |
Get chain for the specified register. More... | |
chain_t * | get_reg_chain (mreg_t reg, int width=1) |
const chain_t * | get_stk_chain (sval_t off, int width=1) const |
Get chain for the specified stack offset. More... | |
chain_t * | get_stk_chain (sval_t off, int width=1) |
const chain_t * | get_chain (const voff_t &k, int width=1) const |
Get chain for the specified value offset. More... | |
chain_t * | get_chain (const voff_t &k, int width=1) |
const chain_t * | get_chain (const chain_t &ch) const |
Get chain similar to the specified chain. More... | |
chain_t * | get_chain (const chain_t &ch) |
void | print (qstring *vout) const |
const char * | dstr () const |
Detailed Description
Chains of one block.
Please note that this class is based on std::set and it must be accessed using the block_chains_begin(), block_chains_find() and similar functions. This is required because different compilers use different implementations of std::set. However, since the size of std::set depends on the compilation options, we replace it with a byte array.
- Examples
- hexrays_sample12.cpp, and hexrays_sample18.cpp.
Definition at line 3373 of file hexrays.hpp.
Member Function Documentation
◆ dstr()
const char * block_chains_t::dstr | ( | void | ) | const |
Definition at line 10826 of file hexrays.hpp.
◆ get_chain() [1/4]
Definition at line 3404 of file hexrays.hpp.
◆ get_chain() [2/4]
Get chain similar to the specified chain.
- Parameters
-
ch chain to search for. only its 'k' and 'width' are used.
Definition at line 10814 of file hexrays.hpp.
◆ get_chain() [3/4]
Definition at line 3398 of file hexrays.hpp.
◆ get_chain() [4/4]
Get chain for the specified value offset.
- Parameters
-
k value offset (register number or stack offset) width size of value in bytes
- Examples
- hexrays_sample12.cpp.
Definition at line 3396 of file hexrays.hpp.
◆ get_reg_chain() [1/2]
Definition at line 3382 of file hexrays.hpp.
◆ get_reg_chain() [2/2]
Get chain for the specified register.
- Parameters
-
reg register number width size of register in bytes
Definition at line 3380 of file hexrays.hpp.
References mop_r.
◆ get_stk_chain() [1/2]
chain_t * block_chains_t::get_stk_chain | ( | sval_t | off, |
int | width = 1 |
||
) |
Definition at line 3390 of file hexrays.hpp.
◆ get_stk_chain() [2/2]
const chain_t * block_chains_t::get_stk_chain | ( | sval_t | off, |
int | width = 1 |
||
) | const |
Get chain for the specified stack offset.
- Parameters
-
off stack offset width size of stack value in bytes
Definition at line 3388 of file hexrays.hpp.
References mop_S.
◆ print()
void block_chains_t::print | ( | qstring * | vout | ) | const |
Definition at line 10820 of file hexrays.hpp.