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

#include <fixup.hpp>

Public Member Functions

 fixup_data_t ()
 fixup_data_t (fixup_type_t type_, uint32 flags_=0)
fixup_type_t get_type (void) const
 Fixup type Types of fixups.
void set_type (fixup_type_t type_)
void set_type_and_flags (fixup_type_t type_, uint32 flags_=0)
bool is_custom (void) const
 is_fixup_custom()
uint32 get_flags () const
 Fixup flags Fixup flags.
bool is_extdef (void) const
void set_extdef (void)
void clr_extdef (void)
bool is_unused (void) const
void set_unused (void)
void clr_unused (void)
bool has_base (void) const
 Is fixup relative?
bool was_created (void) const
 Is fixup artificial?
ea_t get_base () const
 Get base of fixup.
void set_base (ea_t new_base)
 Set base of fixup.
void set_sel (sel_t _sel)
DEPRECATED void set_sel (const segment_t *seg)
void set_target_sel ()
 Set selector of fixup to the target.
void set (ea_t source) const
 set_fixup()
bool get (ea_t source)
 get_fixup()
const fixup_handler_tget_handler () const
 get_fixup_handler()
const char * get_desc (qstring *buf, ea_t source) const
 get_fixup_desc()
int calc_size () const
 calc_fixup_size()
uval_t get_value (ea_t ea) const
 get_fixup_value()
bool patch_value (ea_t ea) const
 patch_fixup_value()
 fixup_data_t (const fixup_data_t &)=default
fixup_data_toperator= (const fixup_data_t &)=default
bool operator== (const fixup_data_t &r) const

Public Attributes

sel_t sel = BADSEL
 selector of the target segment.
ea_t off = 0
 target offset
adiff_t displacement = 0
 displacement (offset from the target)
friend kdata_t

Protected Attributes

fixup_type_t type = 0
uint32 flags = 0
uval_t base = 0

Friends

void unpack_fixup_ub (fixup_data_t *fd, memory_deserializer_t &mmdsr)
size_t pack_fixup (uchar *buf, size_t bufsize, const fixup_data_t &fd)
void convert_fixups_to_700 (dbctx_t &db)

Constructor & Destructor Documentation

◆ fixup_data_t() [1/3]

fixup_data_t::fixup_data_t ( )
inline

◆ fixup_data_t() [2/3]

fixup_data_t::fixup_data_t ( fixup_type_t type_,
uint32 flags_ = 0 )
inline

◆ fixup_data_t() [3/3]

fixup_data_t::fixup_data_t ( const fixup_data_t & )
default

Member Function Documentation

◆ get_type()

fixup_type_t fixup_data_t::get_type ( void ) const
inline

Fixup type Types of fixups.

◆ set_type()

void fixup_data_t::set_type ( fixup_type_t type_)
inline

◆ set_type_and_flags()

void fixup_data_t::set_type_and_flags ( fixup_type_t type_,
uint32 flags_ = 0 )
inline

◆ is_custom()

bool fixup_data_t::is_custom ( void ) const
inline

◆ get_flags()

uint32 fixup_data_t::get_flags ( ) const
inline

Fixup flags Fixup flags.

◆ is_extdef()

bool fixup_data_t::is_extdef ( void ) const
inline

◆ set_extdef()

void fixup_data_t::set_extdef ( void )
inline

◆ clr_extdef()

void fixup_data_t::clr_extdef ( void )
inline

◆ is_unused()

bool fixup_data_t::is_unused ( void ) const
inline

◆ set_unused()

void fixup_data_t::set_unused ( void )
inline

◆ clr_unused()

void fixup_data_t::clr_unused ( void )
inline

◆ has_base()

bool fixup_data_t::has_base ( void ) const
inline

Is fixup relative?

◆ was_created()

bool fixup_data_t::was_created ( void ) const
inline

Is fixup artificial?

◆ get_base()

ea_t fixup_data_t::get_base ( ) const
inline

Get base of fixup.

Note
The target is calculated as get_base() + off.
See also
FIXUPF_REL

◆ set_base()

void fixup_data_t::set_base ( ea_t new_base)
inline

Set base of fixup.

The target should be set before a call of this function.

◆ set_sel() [1/2]

void fixup_data_t::set_sel ( sel_t _sel)
inline

◆ set_sel() [2/2]

DEPRECATED void fixup_data_t::set_sel ( const segment_t * seg)
inline
Deprecated
pass a selector, or use set_target_sel()

◆ set_target_sel()

void fixup_data_t::set_target_sel ( )
inline

Set selector of fixup to the target.

The target should be set before a call of this function.

◆ set()

void fixup_data_t::set ( ea_t source) const
inline

◆ get()

bool fixup_data_t::get ( ea_t source)
inline

◆ get_handler()

const fixup_handler_t * fixup_data_t::get_handler ( ) const
inline

◆ get_desc()

const char * fixup_data_t::get_desc ( qstring * buf,
ea_t source ) const
inline

◆ calc_size()

int fixup_data_t::calc_size ( ) const
inline

◆ get_value()

uval_t fixup_data_t::get_value ( ea_t ea) const
inline

◆ patch_value()

bool fixup_data_t::patch_value ( ea_t ea) const
inline

◆ operator=()

fixup_data_t & fixup_data_t::operator= ( const fixup_data_t & )
default

◆ operator==()

bool fixup_data_t::operator== ( const fixup_data_t & r) const
inline

◆ unpack_fixup_ub

void unpack_fixup_ub ( fixup_data_t * fd,
memory_deserializer_t & mmdsr )
friend

◆ pack_fixup

size_t pack_fixup ( uchar * buf,
size_t bufsize,
const fixup_data_t & fd )
friend

◆ convert_fixups_to_700

void convert_fixups_to_700 ( dbctx_t & db)
friend

Member Data Documentation

◆ type

fixup_type_t fixup_data_t::type = 0
protected

◆ flags

uint32 fixup_data_t::flags = 0
protected

◆ base

uval_t fixup_data_t::base = 0
protected

◆ sel

sel_t fixup_data_t::sel = BADSEL

selector of the target segment.

BADSEL means an absolute (zero based) target.

See also
FIXUPF_REL

◆ off

ea_t fixup_data_t::off = 0

target offset

Note
The target is calculated as get_base() + off.

◆ displacement

adiff_t fixup_data_t::displacement = 0

displacement (offset from the target)

◆ kdata_t

friend fixup_data_t::kdata_t

The documentation for this struct was generated from the following file:
  • /Users/geoffrey/ida-sdk/src/include/fixup.hpp