Home
last modified time | relevance | path

Searched refs:byte_size (Results 1 – 25 of 148) sorted by relevance

123456

/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
DELFHeader.cpp27 uint32_t byte_size) { in GetMaxU64() argument
29 *value = data.GetMaxU64(offset, byte_size); in GetMaxU64()
35 uint32_t byte_size, uint32_t count) { in GetMaxU64() argument
39 if (!GetMaxU64(data, offset, value, byte_size)) { in GetMaxU64()
49 uint32_t byte_size) { in GetMaxS64() argument
51 *value = data.GetMaxS64(offset, byte_size); in GetMaxS64()
57 uint32_t byte_size, uint32_t count) { in GetMaxS64() argument
61 if (!GetMaxS64(data, offset, value, byte_size)) { in GetMaxS64()
120 const unsigned byte_size = Is32Bit() ? 4 : 8; in Parse() local
122 data.SetAddressByteSize(byte_size); in Parse()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Utility/
DRegisterValue.cpp61 const uint32_t src_len = reg_info->byte_size; in GetAsMemoryData()
115 const uint32_t dst_len = reg_info->byte_size; in SetFromMemoryData()
183 if (reg_info->byte_size == 0) { in SetValueFromData()
190 if (!partial_data_ok && (src_len < reg_info->byte_size)) { in SetValueFromData()
197 if (src_len > reg_info->byte_size) in SetValueFromData()
198 src_len = reg_info->byte_size; in SetValueFromData()
211 if (reg_info->byte_size == 1) in SetValueFromData()
213 else if (reg_info->byte_size <= 2) in SetValueFromData()
215 else if (reg_info->byte_size <= 4) in SetValueFromData()
217 else if (reg_info->byte_size <= 8) in SetValueFromData()
[all …]
DScalar.cpp85 size_t byte_size = GetByteSize(); in GetData() local
86 if (byte_size == 0) { in GetData()
90 auto buffer_up = std::make_unique<DataBufferHeap>(byte_size, 0); in GetData()
94 if (limit_byte_size < byte_size) { in GetData()
98 byte_size = limit_byte_size; in GetData()
103 offset = byte_size - limit_byte_size; in GetData()
104 byte_size = limit_byte_size; in GetData()
108 data.SetData(std::move(buffer_up), offset, byte_size); in GetData()
631 size_t byte_size) { in SetValueFromCString() argument
658 fits = integer.isSignedIntN(byte_size * 8); in SetValueFromCString()
[all …]
DDataExtractor.cpp108 static inline uint64_t ReadMaxInt64(const uint8_t *data, size_t byte_size, in ReadMaxInt64() argument
112 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
116 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
117 res = (res << 8) | data[byte_size - 1 - i]; in ReadMaxInt64()
521 size_t byte_size) const { in GetMaxU32()
522 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32()
523 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
527 size_t byte_size) const { in GetMaxU64()
528 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64()
529 switch (byte_size) { in GetMaxU64()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/
DRegisterContextPOSIXCore_ppc64le.cpp71 offset = m_fpr.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
73 if (offset == reg_info->byte_size) { in ReadRegister()
74 value.SetBytes(&v, reg_info->byte_size, m_fpr.GetByteOrder()); in ReadRegister()
80 offset = m_vmx.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
82 if (offset == reg_info->byte_size) { in ReadRegister()
83 value.SetBytes(v, reg_info->byte_size, m_vmx.GetByteOrder()); in ReadRegister()
92 tmp_offset = m_vsx.CopyData(offset / 2, reg_info->byte_size / 2, &v); in ReadRegister()
94 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
99 tmp_offset = m_fpr.CopyData(offset / 2, reg_info->byte_size / 2, dst); in ReadRegister()
101 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
[all …]
DRegisterContextPOSIXCore_powerpc.cpp69 uint64_t v = m_fpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
70 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
76 offset = m_vec.CopyData(offset, reg_info->byte_size, &v); in ReadRegister()
77 if (offset == reg_info->byte_size) { in ReadRegister()
78 value.SetBytes(v, reg_info->byte_size, m_vec.GetByteOrder()); in ReadRegister()
82 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
83 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
84 if (reg_info->byte_size < sizeof(v)) in ReadRegister()
DRegisterContextPOSIXCore_s390x.cpp60 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
61 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
62 value.SetUInt(v, reg_info->byte_size); in ReadRegister()
69 uint64_t v = m_fpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
70 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
71 value.SetUInt(v, reg_info->byte_size); in ReadRegister()
DRegisterContextPOSIXCore_arm64.cpp133 if (offset + reg_info->byte_size <= GetGPRSize()) { in ReadRegister()
134 uint64_t v = m_gpr_data.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
135 if (offset == reg_info->byte_offset + reg_info->byte_size) { in ReadRegister()
151 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
184 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
198 uint64_t byte_size = 1; in ReadRegister() local
202 byte_size = 16; in ReadRegister()
207 value.SetFromMemoryData(reg_info, src, byte_size, lldb::eByteOrderLittle, in ReadRegister()
214 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
225 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Interpreter/
DOptionGroupFormat.cpp92 uint32_t byte_size = 0; in SetOptionValue() local
96 byte_size)) { in SetOptionValue()
105 (format == eFormatInvalid && byte_size == 0 && count == 0)) { in SetOptionValue()
116 byte_size); in SetOptionValue()
122 if (byte_size == 0) in SetOptionValue()
124 byte_size); in SetOptionValue()
128 if (byte_size > 0 && format != lldb::eFormatAddressInfo) { in SetOptionValue()
151 m_byte_size.SetCurrentValue(byte_size); in SetOptionValue()
169 uint32_t &byte_size) { in ParserGDBFormatLetter() argument
202 byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in ParserGDBFormatLetter()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
DABISysV_arm64.cpp230 const uint64_t byte_size = new_value_sp->GetData(data, data_error); in SetReturnValueObject() local
243 if (byte_size <= 16) { in SetReturnValueObject()
246 if (byte_size <= 8) { in SetReturnValueObject()
247 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject()
257 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
276 if (byte_size <= 16) { in SetReturnValueObject()
277 if (byte_size <= RegisterValue::GetMaxByteSize()) { in SetReturnValueObject()
288 byte_size); in SetReturnValueObject()
300 if (byte_size > 0) { in SetReturnValueObject()
304 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
[all …]
DABIMacOSX_arm64.cpp258 const uint64_t byte_size = new_value_sp->GetData(data, data_error); in SetReturnValueObject() local
271 if (byte_size <= 16) { in SetReturnValueObject()
273 if (byte_size <= 8) { in SetReturnValueObject()
274 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject()
284 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
303 if (byte_size <= 16) { in SetReturnValueObject()
304 if (byte_size <= RegisterValue::GetMaxByteSize()) { in SetReturnValueObject()
315 byte_size); in SetReturnValueObject()
327 if (byte_size > 0) { in SetReturnValueObject()
331 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
DABISysV_i386.cpp118 reg_info_32, arg_pos, reg_info_32->byte_size, reg_value); in PrepareTrivialCall()
128 reg_info_32, sp, reg_info_32->byte_size, reg_value); in PrepareTrivialCall()
146 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
152 if (process->ReadScalarIntegerFromMemory(current_stack_argument, byte_size, in ReadIntegerArgument()
154 current_stack_argument += byte_size; in ReadIntegerArgument()
389 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
391 if (!byte_size) in GetReturnValueObjectSimple()
406 switch (*byte_size) { in GetReturnValueObjectSimple()
462 if (*byte_size <= 12) // handles float, double, long double, __float80 in GetReturnValueObjectSimple()
474 if (*byte_size == 4) { in GetReturnValueObjectSimple()
[all …]
DABISysV_x86_64.cpp203 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
206 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
207 current_stack_argument += byte_size; in ReadIntegerArgument()
408 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
410 if (!byte_size) in GetReturnValueObjectSimple()
415 switch (*byte_size) { in GetReturnValueObjectSimple()
455 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
457 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
465 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
468 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
DABIWindows_x86_64.cpp220 uint32_t byte_size = (bit_width + (CHAR_BIT - 1)) / CHAR_BIT; in ReadIntegerArgument() local
223 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
224 current_stack_argument += byte_size; in ReadIntegerArgument()
416 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
418 if (!byte_size) in GetReturnValueObjectSimple()
423 switch (*byte_size) { in GetReturnValueObjectSimple()
463 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
465 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
473 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
476 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Target/
DMemory.cpp101 lldb::addr_t byte_size) { in AddInvalidRange() argument
102 if (byte_size > 0) { in AddInvalidRange()
104 InvalidRanges::Entry range(base_addr, byte_size); in AddInvalidRange()
111 lldb::addr_t byte_size) { in RemoveInvalidRange() argument
112 if (byte_size > 0) { in RemoveInvalidRange()
118 entry->GetByteSize() == byte_size) in RemoveInvalidRange()
252 AllocatedBlock::AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, in AllocatedBlock() argument
254 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock()
259 assert(byte_size > chunk_size); in AllocatedBlock()
345 AllocatedMemoryCache::AllocatePage(uint32_t byte_size, uint32_t permissions, in AllocatePage() argument
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Core/
DAddressRange.h48 lldb::addr_t byte_size);
63 AddressRange(lldb::addr_t file_addr, lldb::addr_t byte_size,
76 AddressRange(const Address &so_addr, lldb::addr_t byte_size);
237 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize() argument
/freebsd-12-stable/contrib/llvm-project/lldb/source/Expression/
DExpressionVariable.cpp19 llvm::Optional<uint64_t> byte_size = m_frozen_sp->GetByteSize(); in GetValueBytes() local
20 if (byte_size && *byte_size) { in GetValueBytes()
21 if (m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) { in GetValueBytes()
22 m_frozen_sp->GetValue().ResizeData(*byte_size); in GetValueBytes()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Symbol/
DCompilerType.cpp739 lldb::offset_t byte_offset, size_t byte_size, in DumpTypeValue() argument
746 byte_size, bitfield_bit_size, in DumpTypeValue()
796 llvm::Optional<uint64_t> byte_size = GetByteSize(exe_scope); in GetValueAsScalar() local
797 if (!byte_size) in GetValueAsScalar()
806 if (*byte_size <= sizeof(unsigned long long)) { in GetValueAsScalar()
807 uint64_t uval64 = data.GetMaxU64(&offset, *byte_size); in GetValueAsScalar()
808 if (*byte_size <= sizeof(unsigned int)) { in GetValueAsScalar()
811 } else if (*byte_size <= sizeof(unsigned long)) { in GetValueAsScalar()
814 } else if (*byte_size <= sizeof(unsigned long long)) { in GetValueAsScalar()
823 if (*byte_size <= sizeof(long long)) { in GetValueAsScalar()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
DUniqueDWARFASTType.h25 const lldb_private::Declaration &decl, int32_t byte_size) in UniqueDWARFASTType() argument
27 m_byte_size(byte_size) {} in UniqueDWARFASTType()
64 const int32_t byte_size, UniqueDWARFASTType &entry) const;
83 const lldb_private::Declaration &decl, const int32_t byte_size, in Find() argument
88 return pos->second.Find(die, decl, byte_size, entry); in Find()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteRegisterContext.cpp77 reg_info->byte_size = reg_size; in GetRegisterInfoAtIndex()
114 const size_t reg_byte_size = reg_info->byte_size; in PrivateSetRegisterValue()
151 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in PrivateSetRegisterValue()
156 m_reg_data.PeekData(reg_info->byte_offset, reg_info->byte_size)); in PrivateSetRegisterValue()
162 reg_info->byte_size, // src length in PrivateSetRegisterValue()
164 reg_info->byte_size, // dst length in PrivateSetRegisterValue()
218 if (reginfo->byte_offset + reginfo->byte_size <= in ReadRegisterBytes()
284 reg_info->byte_offset + reg_info->byte_size); in ReadRegisterBytes()
287 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in ReadRegisterBytes()
296 data.SetData(m_reg_data, reg_info->byte_offset, reg_info->byte_size); in ReadRegisterBytes()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
DABISysV_mips64.cpp755 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectImpl() local
757 if (!byte_size) in GetReturnValueObjectImpl()
777 switch (*byte_size) { in GetReturnValueObjectImpl()
818 switch (*byte_size) { in GetReturnValueObjectImpl()
843 if (*byte_size <= sizeof(long double)) { in GetReturnValueObjectImpl()
854 if (*byte_size == sizeof(float)) { in GetReturnValueObjectImpl()
857 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectImpl()
860 } else if (*byte_size == sizeof(long double)) { in GetReturnValueObjectImpl()
875 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
879 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Core/
DAddressRange.cpp33 AddressRange::AddressRange(addr_t file_addr, addr_t byte_size, in AddressRange() argument
35 : m_base_addr(file_addr, section_list), m_byte_size(byte_size) {} in AddressRange()
38 addr_t byte_size) in AddressRange() argument
39 : m_base_addr(section, offset), m_byte_size(byte_size) {} in AddressRange()
41 AddressRange::AddressRange(const Address &so_addr, addr_t byte_size) in AddressRange() argument
42 : m_base_addr(so_addr), m_byte_size(byte_size) {} in AddressRange()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/
DABISysV_arc.cpp462 const size_t byte_size = compiler_type.GetByteSize(&thread).getValueOr(0); in GetReturnValueObjectSimple() local
463 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
466 if (!SetSizedInteger(value.GetScalar(), raw_value, byte_size, is_signed)) in GetReturnValueObjectSimple()
486 const size_t byte_size = compiler_type.GetByteSize(&thread).getValueOr(0); in GetReturnValueObjectSimple() local
487 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
489 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetReturnValueObjectSimple()
525 size_t byte_size = retType.getPrimitiveSizeInBits(); in GetReturnValueObjectImpl() local
526 if (1 != byte_size) // For boolean type. in GetReturnValueObjectImpl()
527 byte_size /= CHAR_BIT; in GetReturnValueObjectImpl()
529 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectImpl()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
DABISysV_ppc.cpp326 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
329 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
330 current_stack_argument += byte_size; in ReadIntegerArgument()
529 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
531 if (!byte_size) in GetReturnValueObjectSimple()
536 switch (*byte_size) { in GetReturnValueObjectSimple()
576 llvm::Optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
578 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
585 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
588 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Target/
DMemory.h36 void AddInvalidRange(lldb::addr_t base_addr, lldb::addr_t byte_size);
38 bool RemoveInvalidRange(lldb::addr_t base_addr, lldb::addr_t byte_size);
70 AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, uint32_t permissions,
121 lldb::addr_t AllocateMemory(size_t byte_size, uint32_t permissions,
129 AllocatedBlockSP AllocatePage(uint32_t byte_size, uint32_t permissions,

123456