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

Describes a breakpoint location. More...

#include <dbg.hpp>

Public Member Functions

bpt_loctype_t type (void) const
 Get bpt type.
bool is_empty_path (void) const
 No path/filename specified? (BPLT_REL, BPLT_SRC)
const char * path (void) const
 Get path/filename (BPLT_REL, BPLT_SRC)
const char * symbol (void) const
 Get symbol name (BPLT_SYM)
int lineno (void) const
 Get line number (BPLT_SRC)
uval_t offset (void) const
 Get offset (BPLT_REL, BPLT_SYM)
ea_t ea (void) const
 Get address (BPLT_ABS)
 bpt_location_t (void)
 Constructor (default type is BPLT_ABS)
void set_abs_bpt (ea_t a)
 Specify an absolute address location.
void set_src_bpt (const char *fn, int _lineno)
 Specify a source level location.
void set_sym_bpt (const char *_symbol, uval_t _offset=0)
 Specify a symbolic location.
void set_rel_bpt (const char *mod, uval_t _offset)
 Specify a relative address location.
int compare (const bpt_location_t &r) const
 Lexically compare two breakpoint locations.
bool operator== (const bpt_location_t &r) const
bool operator!= (const bpt_location_t &r) const
bool operator< (const bpt_location_t &r) const
bool operator> (const bpt_location_t &r) const
bool operator<= (const bpt_location_t &r) const
bool operator>= (const bpt_location_t &r) const
size_t print (qstring *buf) const
 Internal function.

Public Attributes

ea_t info
int index
bpt_loctype_t loctype

Detailed Description

Describes a breakpoint location.

Constructor & Destructor Documentation

◆ bpt_location_t()

bpt_location_t::bpt_location_t ( void )
inline

Constructor (default type is BPLT_ABS)

Member Function Documentation

◆ type()

bpt_loctype_t bpt_location_t::type ( void ) const
inline

Get bpt type.

◆ is_empty_path()

bool bpt_location_t::is_empty_path ( void ) const
inline

No path/filename specified? (BPLT_REL, BPLT_SRC)

◆ path()

const char * bpt_location_t::path ( void ) const
inline

Get path/filename (BPLT_REL, BPLT_SRC)

◆ symbol()

const char * bpt_location_t::symbol ( void ) const
inline

Get symbol name (BPLT_SYM)

◆ lineno()

int bpt_location_t::lineno ( void ) const
inline

Get line number (BPLT_SRC)

◆ offset()

uval_t bpt_location_t::offset ( void ) const
inline

Get offset (BPLT_REL, BPLT_SYM)

◆ ea()

ea_t bpt_location_t::ea ( void ) const
inline

Get address (BPLT_ABS)

◆ set_abs_bpt()

void bpt_location_t::set_abs_bpt ( ea_t a)
inline

Specify an absolute address location.

◆ set_src_bpt()

void bpt_location_t::set_src_bpt ( const char * fn,
int _lineno )
inline

Specify a source level location.

◆ set_sym_bpt()

void bpt_location_t::set_sym_bpt ( const char * _symbol,
uval_t _offset = 0 )
inline

Specify a symbolic location.

◆ set_rel_bpt()

void bpt_location_t::set_rel_bpt ( const char * mod,
uval_t _offset )
inline

Specify a relative address location.

◆ compare()

int bpt_location_t::compare ( const bpt_location_t & r) const
inline

Lexically compare two breakpoint locations.

Bpt locations are first compared based on type (i.e. BPLT_ABS < BPLT_REL). BPLT_ABS locations are compared based on their ea values. For all other location types, locations are first compared based on their string (path/filename/symbol), then their offset/lineno.

◆ operator==()

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

◆ operator!=()

bool bpt_location_t::operator!= ( const bpt_location_t & r) const
inline

◆ operator<()

bool bpt_location_t::operator< ( const bpt_location_t & r) const
inline

◆ operator>()

bool bpt_location_t::operator> ( const bpt_location_t & r) const
inline

◆ operator<=()

bool bpt_location_t::operator<= ( const bpt_location_t & r) const
inline

◆ operator>=()

bool bpt_location_t::operator>= ( const bpt_location_t & r) const
inline

◆ print()

size_t bpt_location_t::print ( qstring * buf) const

Internal function.

Member Data Documentation

◆ info

ea_t bpt_location_t::info

◆ index

int bpt_location_t::index

◆ loctype

bpt_loctype_t bpt_location_t::loctype

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