LLDB
mainline
|
#include <Opcode.h>
Public Types | |
enum | Type { eTypeInvalid, eType8, eType16, eType16_2, eType32, eType64, eTypeBytes } |
Protected Member Functions | |
const void * | GetOpcodeDataBytes () const |
lldb::ByteOrder | GetDataByteOrder () const |
bool | GetEndianSwap () const |
Protected Attributes | |
lldb::ByteOrder | m_byte_order = lldb::eByteOrderInvalid |
Opcode::Type | m_type = eTypeInvalid |
union { | |
uint8_t inst8 | |
uint16_t inst16 | |
uint32_t inst32 | |
uint64_t inst64 | |
struct { | |
uint8_t bytes [16] | |
uint8_t length | |
} inst | |
} | m_data |
Friends | |
class | lldb::SBInstruction |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 63 of file Opcode.h.
References bytes, length, and SetOpcodeBytes().
|
inline |
Definition at line 68 of file Opcode.h.
References lldb::eByteOrderInvalid, eTypeInvalid, m_byte_order, and m_type.
Definition at line 24 of file Opcode.cpp.
References lldb_private::Stream::GetWrittenBytes(), lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::Stream::PutCString().
Referenced by lldb_private::Instruction::Dump().
|
inline |
Definition at line 202 of file Opcode.h.
References eType16, eType16_2, eType32, eType64, eType8, eTypeBytes, eTypeInvalid, m_data, and m_type.
Referenced by lldb_private::PseudoInstruction::Decode(), UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(), and EmulateInstructionMIPS::SetInstruction().
uint32_t Opcode::GetData | ( | DataExtractor & | data | ) | const |
Definition at line 81 of file Opcode.cpp.
References lldb_private::DataExtractor::Clear(), lldb_private::DataExtractor::SetByteOrder(), and lldb_private::DataExtractor::SetData().
Referenced by EmulateInstructionMIPS64::EvaluateInstruction(), EmulateInstructionMIPS::EvaluateInstruction(), and lldb_private::Instruction::GetData().
|
protected |
Definition at line 62 of file Opcode.cpp.
References lldb::eByteOrderInvalid, and lldb_private::endian::InlHostByteOrder().
|
inlineprotected |
Definition at line 248 of file Opcode.h.
References lldb::eByteOrderBig, lldb::eByteOrderLittle, lldb_private::endian::InlHostByteOrder(), and m_byte_order.
Referenced by GetOpcode16(), GetOpcode32(), and GetOpcode64().
Definition at line 95 of file Opcode.h.
References eType16, eType16_2, eType32, eType64, eType8, eTypeBytes, eTypeInvalid, GetEndianSwap(), m_data, and m_type.
|
inline |
Definition at line 115 of file Opcode.h.
References eType16, eType16_2, eType32, eType64, eType8, eTypeBytes, eTypeInvalid, GetEndianSwap(), m_data, and m_type.
|
inline |
Definition at line 134 of file Opcode.h.
References eType16, eType16_2, eType32, eType64, eType8, eTypeBytes, eTypeInvalid, GetEndianSwap(), m_data, and m_type.
|
inline |
|
inline |
Definition at line 198 of file Opcode.h.
References eTypeBytes, m_data, and m_type.
|
inlineprotected |
|
inline |
Definition at line 73 of file Opcode.h.
References m_type.
Referenced by lldb_private::Instruction::Dump().
|
inline |
Definition at line 159 of file Opcode.h.
References eType16, inst, m_byte_order, m_data, and m_type.
Referenced by lldb_private::PseudoInstruction::SetOpcode().
|
inline |
|
inline |
Definition at line 171 of file Opcode.h.
References eType32, inst, m_byte_order, m_data, and m_type.
Referenced by EmulateInstructionMIPS64::ReadInstruction(), EmulateInstructionMIPS::ReadInstruction(), and lldb_private::PseudoInstruction::SetOpcode().
|
inline |
Definition at line 177 of file Opcode.h.
References eType64, inst, m_byte_order, m_data, and m_type.
Referenced by lldb_private::PseudoInstruction::SetOpcode().
|
inline |
Definition at line 153 of file Opcode.h.
References eType8, inst, m_byte_order, m_data, and m_type.
Referenced by lldb_private::PseudoInstruction::SetOpcode().
|
inline |
Definition at line 183 of file Opcode.h.
References bytes, lldb::eByteOrderInvalid, eTypeBytes, eTypeInvalid, length, m_byte_order, m_data, and m_type.
Referenced by Opcode().
|
friend |
uint8_t lldb_private::Opcode::bytes[16] |
Definition at line 264 of file Opcode.h.
Referenced by Opcode(), and SetOpcodeBytes().
struct { ... } lldb_private::Opcode::inst |
Referenced by Opcode(), SetOpcode16(), SetOpcode16_2(), SetOpcode32(), SetOpcode64(), and SetOpcode8().
uint8_t lldb_private::Opcode::length |
Definition at line 266 of file Opcode.h.
Referenced by Opcode(), and SetOpcodeBytes().
|
protected |
Definition at line 255 of file Opcode.h.
Referenced by Clear(), GetEndianSwap(), SetOpcode16(), SetOpcode16_2(), SetOpcode32(), SetOpcode64(), SetOpcode8(), and SetOpcodeBytes().
union { ... } lldb_private::Opcode::m_data |
|
protected |
Definition at line 257 of file Opcode.h.
Referenced by Clear(), GetByteSize(), GetOpcode16(), GetOpcode32(), GetOpcode64(), GetOpcode8(), GetOpcodeBytes(), GetOpcodeDataBytes(), GetType(), SetOpcode16(), SetOpcode16_2(), SetOpcode32(), SetOpcode64(), SetOpcode8(), and SetOpcodeBytes().