Home
last modified time | relevance | path

Searched refs:byte_order (Results 1 – 25 of 112) sorted by relevance

12345

/external/llvm-project/lldb/examples/python/
Dfile_extract.py15 self.byte_order = b
21 self.byte_order = '>'
23 self.byte_order = '<'
26 self.byte_order = swap_unpack_char()
28 self.byte_order = '='
30 self.byte_order = b
67 v, = struct.unpack(self.byte_order + 'b', s)
76 v, = struct.unpack(self.byte_order + 'B', s)
85 v, = struct.unpack(self.byte_order + 'h', s)
94 v, = struct.unpack(self.byte_order + 'H', s)
[all …]
/external/llvm-project/lldb/source/Utility/
DStream.cpp25 Stream::Stream(uint32_t flags, uint32_t addr_size, ByteOrder byte_order, in Stream() argument
27 : m_flags(flags), m_addr_size(addr_size), m_byte_order(byte_order), in Stream()
37 ByteOrder Stream::SetByteOrder(ByteOrder byte_order) { in SetByteOrder() argument
39 m_byte_order = byte_order; in SetByteOrder()
240 size_t Stream::PutHex16(uint16_t uvalue, ByteOrder byte_order) { in PutHex16() argument
243 if (byte_order == eByteOrderInvalid) in PutHex16()
244 byte_order = m_byte_order; in PutHex16()
246 if (byte_order == eByteOrderLittle) { in PutHex16()
256 size_t Stream::PutHex32(uint32_t uvalue, ByteOrder byte_order) { in PutHex32() argument
259 if (byte_order == eByteOrderInvalid) in PutHex32()
[all …]
DRegisterValue.cpp141 DataExtractor data(buffer.bytes, buffer.length, buffer.byte_order, 1); in GetScalarValue()
243 buffer.byte_order = src.GetByteOrder(); in SetValueFromData()
252 buffer.byte_order) == 0) // dst byte order in SetValueFromData()
501 buffer.byte_order = rhs.buffer.byte_order; in CopyValue()
753 lldb::ByteOrder byte_order) { in SetBytes() argument
763 buffer.byte_order = byte_order; in SetBytes()
824 if (buffer.byte_order == eByteOrderBig || in ClearBit()
825 buffer.byte_order == eByteOrderLittle) { in ClearBit()
827 if (buffer.byte_order == eByteOrderBig) in ClearBit()
864 if (buffer.byte_order == eByteOrderBig || in SetBit()
[all …]
/external/llvm-project/lldb/unittests/SymbolFile/DWARF/
DSymbolFileDWARFTests.cpp75 const auto byte_order = eByteOrderLittle; in TEST_F() local
77 StreamString encoder(Stream::eBinary, addr_size, byte_order); in TEST_F()
97 data.SetData(encoder.GetData(), encoder.GetSize(), byte_order); in TEST_F()
120 const auto byte_order = eByteOrderLittle; in TEST_F() local
122 StreamString encoder(Stream::eBinary, addr_size, byte_order); in TEST_F()
142 data.SetData(encoder.GetData(), encoder.GetSize(), byte_order); in TEST_F()
165 const auto byte_order = eByteOrderLittle; in TEST_F() local
167 StreamString encoder(Stream::eBinary, addr_size, byte_order); in TEST_F()
187 data.SetData(encoder.GetData(), encoder.GetSize(), byte_order); in TEST_F()
210 const auto byte_order = eByteOrderLittle; in TEST_F() local
[all …]
/external/llvm-project/lldb/include/lldb/Utility/
DStream.h59 Stream(uint32_t flags, uint32_t addr_size, lldb::ByteOrder byte_order,
122 lldb::ByteOrder SetByteOrder(lldb::ByteOrder byte_order);
150 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
153 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
156 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
159 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
161 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
164 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
167 lldb::ByteOrder byte_order = lldb::eByteOrderInvalid);
DRegisterValue.h78 lldb::ByteOrder byte_order) { in RegisterValue() argument
79 SetBytes(bytes.data(), bytes.size(), byte_order); in RegisterValue()
233 void SetBytes(const void *bytes, size_t length, lldb::ByteOrder byte_order);
249 return buffer.byte_order; in GetByteOrder()
268 lldb::ByteOrder byte_order; member
DDataExtractor.h88 lldb::ByteOrder byte_order, uint32_t addr_size,
109 DataExtractor(const lldb::DataBufferSP &data_sp, lldb::ByteOrder byte_order,
860 lldb::ByteOrder byte_order);
920 void SetByteOrder(lldb::ByteOrder byte_order) { m_byte_order = byte_order; } in SetByteOrder() argument
/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/
DRegisterContextPOSIXProcessMonitor_x86.cpp136 ByteOrder byte_order = GetByteOrder(); in WriteRegister() local
141 full_reg_info, dst, sizeof(dst), byte_order, error); in WriteRegister()
147 reg_info, src, sizeof(src), byte_order, error); in WriteRegister()
152 value_to_write.SetBytes(dst, full_value.GetByteSize(), byte_order); in WriteRegister()
210 ByteOrder byte_order = GetByteOrder(); in ReadRegister() local
212 if (byte_order != ByteOrder::eByteOrderInvalid) { in ReadRegister()
215 reg_info->byte_size, byte_order); in ReadRegister()
218 reg_info->byte_size, byte_order); in ReadRegister()
221 reg_info->byte_size, byte_order); in ReadRegister()
225 if (GetFPRType() == eXSAVE && CopyXSTATEtoYMM(reg, byte_order)) in ReadRegister()
[all …]
DRegisterContextPOSIXProcessMonitor_mips64.cpp79 ByteOrder byte_order = GetByteOrder(); in WriteRegister() local
84 full_reg_info, dst, sizeof(dst), byte_order, error); in WriteRegister()
90 reg_info, src, sizeof(src), byte_order, error); in WriteRegister()
95 value_to_write.SetBytes(dst, full_value.GetByteSize(), byte_order); in WriteRegister()
DRegisterContextPOSIXProcessMonitor_arm.cpp79 ByteOrder byte_order = GetByteOrder(); in WriteRegister() local
84 full_reg_info, dst, sizeof(dst), byte_order, error); in WriteRegister()
90 reg_info, src, sizeof(src), byte_order, error); in WriteRegister()
95 value_to_write.SetBytes(dst, full_value.GetByteSize(), byte_order); in WriteRegister()
DRegisterContextPOSIXProcessMonitor_powerpc.cpp91 ByteOrder byte_order = GetByteOrder(); in WriteRegister() local
96 full_reg_info, dst, sizeof(dst), byte_order, error); in WriteRegister()
102 reg_info, src, sizeof(src), byte_order, error); in WriteRegister()
107 value_to_write.SetBytes(dst, full_value.GetByteSize(), byte_order); in WriteRegister()
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionVariable.cpp24 ExecutionContextScope *exe_scope, lldb::ByteOrder byte_order, in ClangExpressionVariable() argument
30 ValueObjectConstResult::Create(exe_scope, byte_order, addr_byte_size); in ClangExpressionVariable()
52 const TypeFromUser &user_type, lldb::ByteOrder byte_order, in ClangExpressionVariable() argument
58 ValueObjectConstResult::Create(exe_scope, byte_order, addr_byte_size); in ClangExpressionVariable()
/external/llvm-project/lldb/source/Plugins/SymbolFile/PDB/
DPDBLocationToDWARFExpression.cpp76 ByteOrder byte_order = architecture.GetByteOrder(); in ConvertPDBLocationToDWARFExpression() local
79 if (byte_order == eByteOrderInvalid || address_size == 0) in ConvertPDBLocationToDWARFExpression()
83 StreamBuffer<32> stream(Stream::eBinary, address_size, byte_order); in ConvertPDBLocationToDWARFExpression()
101 byte_order); in ConvertPDBLocationToDWARFExpression()
176 DataExtractor extractor(buffer, byte_order, address_size, byte_size); in ConvertPDBLocationToDWARFExpression()
/external/llvm-project/lldb/source/Plugins/ABI/AArch64/
DABISysV_arm64.cpp477 const ByteOrder byte_order = exe_ctx.GetProcessRef().GetByteOrder(); in LoadValueFromConsecutiveGPRRegisters() local
514 byte_order, error); in LoadValueFromConsecutiveGPRRegisters()
522 data.SetByteOrder(byte_order); in LoadValueFromConsecutiveGPRRegisters()
550 byte_order, error); in LoadValueFromConsecutiveGPRRegisters()
596 data.SetByteOrder(byte_order); in LoadValueFromConsecutiveGPRRegisters()
654 const ByteOrder byte_order = in GetReturnValueObjectImpl() local
663 byte_order, error) && in GetReturnValueObjectImpl()
666 byte_order, error)) { in GetReturnValueObjectImpl()
668 DataBufferSP(heap_data_up.release()), byte_order, in GetReturnValueObjectImpl()
752 const ByteOrder byte_order = exe_ctx.GetProcessRef().GetByteOrder(); in GetReturnValueObjectImpl() local
[all …]
DABIMacOSX_arm64.cpp502 const ByteOrder byte_order = exe_ctx.GetProcessRef().GetByteOrder(); in LoadValueFromConsecutiveGPRRegisters() local
539 byte_order, error); in LoadValueFromConsecutiveGPRRegisters()
547 data.SetByteOrder(byte_order); in LoadValueFromConsecutiveGPRRegisters()
579 byte_order, error); in LoadValueFromConsecutiveGPRRegisters()
628 data.SetByteOrder(byte_order); in LoadValueFromConsecutiveGPRRegisters()
684 const ByteOrder byte_order = in GetReturnValueObjectImpl() local
693 byte_order, error) && in GetReturnValueObjectImpl()
696 byte_order, error)) { in GetReturnValueObjectImpl()
698 DataBufferSP(heap_data_up.release()), byte_order, in GetReturnValueObjectImpl()
784 const ByteOrder byte_order = exe_ctx.GetProcessRef().GetByteOrder(); in GetReturnValueObjectImpl() local
[all …]
/external/llvm-project/lldb/source/Plugins/Process/Linux/
DNativeRegisterContextLinux_x86_64.cpp463 lldb::ByteOrder byte_order = GetByteOrder(); in ReadRegister() local
465 if (byte_order != lldb::eByteOrderInvalid) { in ReadRegister()
469 reg_info->byte_size, byte_order); in ReadRegister()
473 reg_info->byte_size, byte_order); in ReadRegister()
477 reg_info->byte_size, byte_order); in ReadRegister()
481 if (CopyXSTATEtoYMM(reg, byte_order)) in ReadRegister()
483 reg_info->byte_size, byte_order); in ReadRegister()
492 reg_info->byte_size, byte_order); in ReadRegister()
501 reg_info->byte_size, byte_order); in ReadRegister()
712 lldb::ByteOrder byte_order = GetByteOrder(); in ReadAllRegisterValues() local
[all …]
DNativeRegisterContextLinux.cpp57 lldb::ByteOrder byte_order = GetByteOrder(); in WriteRegisterRaw() local
62 full_reg_info, dst, sizeof(dst), byte_order, error); in WriteRegisterRaw()
68 reg_info, src, sizeof(src), byte_order, error); in WriteRegisterRaw()
73 value_to_write.SetBytes(dst, full_value.GetByteSize(), byte_order); in WriteRegisterRaw()
/external/llvm-project/lldb/test/API/tools/lldb-server/register-reading/
DTestGdbRemoteGPacket.py10 def _extract_register_value(reg_info, reg_bank, byte_order, bytes_per_entry=8): argument
20 if byte_order == lldb.eByteOrderLittle:
109 byte_order = self.get_target_byte_order()
111 reg_infos[reg_name], reg_bank, byte_order)
/external/llvm-project/lldb/source/Plugins/ABI/X86/
DABISysV_x86_64.cpp360 ByteOrder byte_order = data.GetByteOrder(); in SetReturnValueObject() local
362 data.CopyByteOrderedData(0, num_bytes, buffer, 16, byte_order); in SetReturnValueObject()
363 xmm0_value.SetBytes(buffer, 16, byte_order); in SetReturnValueObject()
508 const ByteOrder byte_order = process_sp->GetByteOrder(); in GetReturnValueObjectSimple() local
514 heap_data_up->GetByteSize(), byte_order, error)) { in GetReturnValueObjectSimple()
516 byte_order, in GetReturnValueObjectSimple()
533 const ByteOrder byte_order = process_sp->GetByteOrder(); in GetReturnValueObjectSimple() local
542 altivec_reg->byte_size, byte_order, error) && in GetReturnValueObjectSimple()
547 byte_order, error)) { in GetReturnValueObjectSimple()
549 byte_order, in GetReturnValueObjectSimple()
[all …]
DABIWindows_x86_64.cpp367 ByteOrder byte_order = data.GetByteOrder(); in SetReturnValueObject() local
369 data.CopyByteOrderedData(0, num_bytes, buffer, 16, byte_order); in SetReturnValueObject()
370 xmm0_value.SetBytes(buffer, 16, byte_order); in SetReturnValueObject()
515 const ByteOrder byte_order = process_sp->GetByteOrder(); in GetReturnValueObjectSimple() local
521 heap_data_up->GetByteSize(), byte_order, error)) { in GetReturnValueObjectSimple()
523 byte_order, in GetReturnValueObjectSimple()
643 ByteOrder byte_order = target->GetArchitecture().GetByteOrder(); in GetReturnValueObjectImpl() local
646 DataExtractor return_ext(data_sp, byte_order, in GetReturnValueObjectImpl()
702 field_byte_width, byte_order); in GetReturnValueObjectImpl()
/external/llvm-project/lldb/include/lldb/Core/
DValueObjectConstResult.h38 Create(ExecutionContextScope *exe_scope, lldb::ByteOrder byte_order,
49 lldb::ByteOrder byte_order, uint32_t addr_size,
125 lldb::ByteOrder byte_order, uint32_t addr_byte_size,
137 lldb::ByteOrder byte_order, uint32_t addr_size,
DStreamBuffer.h23 StreamBuffer(uint32_t flags, uint32_t addr_size, lldb::ByteOrder byte_order) in StreamBuffer() argument
24 : Stream(flags, addr_size, byte_order), m_packet() {} in StreamBuffer()
/external/llvm-project/lldb/packages/Python/lldbsuite/test/
Dlldbdwarf.py168 def updateRegInfoBitsize(self, reg_info, byte_order): argument
173 byte_order)
181 def evaluateDwarfExpression(self, dwarf_opcode, byte_order): argument
210 if byte_order == lldb.eByteOrderLittle:
/external/llvm-project/lldb/source/Core/
DAddress.cpp77 ByteOrder &byte_order, in GetByteOrderAndAddressSize() argument
79 byte_order = eByteOrderInvalid; in GetByteOrderAndAddressSize()
86 byte_order = target_sp->GetArchitecture().GetByteOrder(); in GetByteOrderAndAddressSize()
90 if (byte_order == eByteOrderInvalid || addr_size == 0) { in GetByteOrderAndAddressSize()
93 byte_order = module_sp->GetArchitecture().GetByteOrder(); in GetByteOrderAndAddressSize()
97 return byte_order != eByteOrderInvalid && addr_size != 0; in GetByteOrderAndAddressSize()
112 ByteOrder byte_order = eByteOrderInvalid; in ReadUIntMax64() local
114 if (GetByteOrderAndAddressSize(exe_scope, address, byte_order, addr_size)) { in ReadUIntMax64()
115 DataExtractor data(&buf, sizeof(buf), byte_order, addr_size); in ReadUIntMax64()
168 ByteOrder byte_order = eByteOrderInvalid; in DumpUInt() local
[all …]
DStreamFile.cpp18 StreamFile::StreamFile(uint32_t flags, uint32_t addr_size, ByteOrder byte_order) in StreamFile() argument
19 : Stream(flags, addr_size, byte_order) { in StreamFile()

12345