Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
arion::CODE_HIT Struct Reference

#include <code_tracer.hpp>

Public Member Functions

 CODE_HIT ()
 
 CODE_HIT (uint32_t off, size_t sz, uint16_t mod_id)
 

Public Attributes

uint32_t off
 Offset of the hit relative to the start address of its module.
 
uint16_t sz
 Size of the hit. It can either be the instruction size or the basic block size depending on the used TRACE_MODE.
 
uint16_t mod_id
 ID of the hit module.
 
std::unique_ptr< std::map< REG, RVAL > > regs
 CPU context as a map of register values. Only used in TRACE_MODE::CTXT.
 

Detailed Description

Stores context information of a single hit. A hit can either be a new instruction or a new basic block depending on the used TRACE_MODE.

Constructor & Destructor Documentation

◆ CODE_HIT() [1/2]

arion::CODE_HIT::CODE_HIT ( )
inline

Builder for CODE_HIT instances.

◆ CODE_HIT() [2/2]

arion::CODE_HIT::CODE_HIT ( uint32_t  off,
size_t  sz,
uint16_t  mod_id 
)
inline

Builder for CODE_HIT instances.

Parameters
[in]offOffset of the hit relative to the start address of its module.
[in]szSize of the hit. It can either be the instruction size or the basic block size depending on the used TRACE_MODE.
[in]mod_idID of the hit module.
[in]regsCPU context as a map of register values. Only used in TRACE_MODE::CTXT.

Member Data Documentation

◆ mod_id

uint16_t arion::CODE_HIT::mod_id

ID of the hit module.

◆ off

uint32_t arion::CODE_HIT::off

Offset of the hit relative to the start address of its module.

◆ regs

std::unique_ptr<std::map<REG, RVAL> > arion::CODE_HIT::regs

CPU context as a map of register values. Only used in TRACE_MODE::CTXT.

◆ sz

uint16_t arion::CODE_HIT::sz

Size of the hit. It can either be the instruction size or the basic block size depending on the used TRACE_MODE.


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