46 for (uint32_t i = 0; i <
m_data.inst.length; ++i) {
57 if (bytes_written_so_far < min_byte_width)
58 s->
Printf(
"%*s", min_byte_width - bytes_written_so_far,
"");
84 const void *buf =
nullptr;
90 swap_buf[0] =
m_data.inst.bytes[2];
91 swap_buf[1] =
m_data.inst.bytes[3];
92 swap_buf[2] =
m_data.inst.bytes[0];
93 swap_buf[3] =
m_data.inst.bytes[1];
106 *(uint16_t *)swap_buf = llvm::byteswap<uint16_t>(
m_data.inst16);
110 swap_buf[0] =
m_data.inst.bytes[1];
111 swap_buf[1] =
m_data.inst.bytes[0];
112 swap_buf[2] =
m_data.inst.bytes[3];
113 swap_buf[3] =
m_data.inst.bytes[2];
117 *(uint32_t *)swap_buf = llvm::byteswap<uint32_t>(
m_data.inst32);
121 *(uint32_t *)swap_buf = llvm::byteswap<uint64_t>(
m_data.inst64);
130 if (buf !=
nullptr) {
133 buffer_sp = std::make_shared<DataBufferHeap>(buf, byte_size);
int Dump(Stream *s, uint32_t min_byte_width)
uint32_t GetByteSize() const
union lldb_private::Opcode::@6 m_data
bool GetEndianSwap() const
lldb::ByteOrder m_byte_order
const void * GetOpcodeDataBytes() const
lldb::ByteOrder GetDataByteOrder() const
uint32_t GetData(DataExtractor &data) const
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
size_t GetWrittenBytes() const
lldb::ByteOrder InlHostByteOrder()
A class that represents a running process on the host machine.
ByteOrder
Byte ordering definitions.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP