retdec
|
#include <jump_targets.h>
Public Types | |
enum class | eType { CONTROL_FLOW_BR_FALSE = 0 , CONTROL_FLOW_BR_TRUE , CONTROL_FLOW_SWITCH_CASE , CONTROL_FLOW_CALL_TARGET , CONTROL_FLOW_RETURN_TARGET , CONFIG , ENTRY_POINT , SELECTED_RANGE_START , IMPORT , DEBUG , SYMBOL , EXPORT , STATIC_CODE , VTABLE , LEFTOVER , UNKNOWN } |
Public Member Functions | |
JumpTarget () | |
JumpTarget (retdec::common::Address a, eType t, cs_mode m, retdec::common::Address f, std::optional< std::size_t > sz=std::nullopt) | |
bool | operator< (const JumpTarget &o) const |
retdec::common::Address | getAddress () const |
bool | hasSize () const |
std::optional< std::size_t > | getSize () const |
eType | getType () const |
retdec::common::Address | getFromAddress () const |
cs_mode | getMode () const |
void | setMode (cs_mode m) const |
Static Public Attributes | |
static Config * | config = nullptr |
Private Attributes | |
retdec::common::Address | _address |
std::optional< std::size_t > | _size |
eType | _type = eType::UNKNOWN |
retdec::common::Address | _fromAddress |
Address from which this jump target was created. More... | |
cs_mode | _mode = CS_MODE_BIG_ENDIAN |
Disassembler mode that should be used for this jump target. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const JumpTarget &jt) |
Representation of an address that will be tried to be decoded.
|
strong |
Jump target type and its priority. Lower number -> higher priority.
retdec::bin2llvmir::JumpTarget::JumpTarget | ( | ) |
retdec::bin2llvmir::JumpTarget::JumpTarget | ( | retdec::common::Address | a, |
eType | t, | ||
cs_mode | m, | ||
retdec::common::Address | f, | ||
std::optional< std::size_t > | sz = std::nullopt |
||
) |
retdec::common::Address retdec::bin2llvmir::JumpTarget::getAddress | ( | ) | const |
retdec::common::Address retdec::bin2llvmir::JumpTarget::getFromAddress | ( | ) | const |
cs_mode retdec::bin2llvmir::JumpTarget::getMode | ( | ) | const |
std::optional< std::size_t > retdec::bin2llvmir::JumpTarget::getSize | ( | ) | const |
JumpTarget::eType retdec::bin2llvmir::JumpTarget::getType | ( | ) | const |
bool retdec::bin2llvmir::JumpTarget::hasSize | ( | ) | const |
bool retdec::bin2llvmir::JumpTarget::operator< | ( | const JumpTarget & | o | ) | const |
void retdec::bin2llvmir::JumpTarget::setMode | ( | cs_mode | m | ) | const |
|
friend |
|
private |
|
private |
Address from which this jump target was created.
|
mutableprivate |
Disassembler mode that should be used for this jump target.
|
private |
|
private |
|
static |