Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp51 const uint32_t src_len = reg_info.byte_size; in GetAsMemoryData()
94 const uint32_t dst_len = reg_info.byte_size; in SetFromMemoryData()
166 if (reg_info.byte_size == 0) { in SetValueFromData()
173 if (!partial_data_ok && (src_len < reg_info.byte_size)) { in SetValueFromData()
180 if (src_len > reg_info.byte_size) in SetValueFromData()
181 src_len = reg_info.byte_size; in SetValueFromData()
191 if (reg_info.byte_size == 1) in SetValueFromData()
193 else if (reg_info.byte_size <= 2) in SetValueFromData()
195 else if (reg_info.byte_size <= 4) in SetValueFromData()
197 else if (reg_info.byte_size <= 8) in SetValueFromData()
[all …]
H A DScalar.cpp86 size_t byte_size = GetByteSize(); in GetData() local
87 if (byte_size == 0) { in GetData()
91 auto buffer_up = std::make_unique<DataBufferHeap>(byte_size, 0); in GetData()
95 if (limit_byte_size < byte_size) { in GetData()
99 byte_size = limit_byte_size; in GetData()
104 offset = byte_size - limit_byte_size; in GetData()
105 byte_size = limit_byte_size; in GetData()
109 data.SetData(std::move(buffer_up), offset, byte_size); in GetData()
632 size_t byte_size) { in SetValueFromCString() argument
659 fits = integer.isSignedIntN(byte_size * 8); in SetValueFromCString()
[all …]
H A DDataExtractor.cpp109 static inline uint64_t ReadMaxInt64(const uint8_t *data, size_t byte_size, in ReadMaxInt64() argument
113 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
117 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
118 res = (res << 8) | data[byte_size - 1 - i]; in ReadMaxInt64()
520 size_t byte_size) const { in GetMaxU32()
521 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32()
522 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
526 size_t byte_size) const { in GetMaxU64()
527 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64()
528 switch (byte_size) { in GetMaxU64()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A 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/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/
H A 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 …]
H A 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()
H A 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()
H A DRegisterContextPOSIXCore_arm64.cpp223 if (offset + reg_info->byte_size <= GetGPRSize()) { in ReadRegister()
225 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
239 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
272 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
286 uint64_t byte_size = 1; in ReadRegister() local
290 byte_size = 16; in ReadRegister()
295 value.SetFromMemoryData(*reg_info, src, byte_size, lldb::eByteOrderLittle, in ReadRegister()
303 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
314 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
319 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionGroupFormat.cpp110 uint32_t byte_size = 0; in SetOptionValue() local
114 byte_size)) { in SetOptionValue()
123 (format == eFormatInvalid && byte_size == 0 && count == 0)) { in SetOptionValue()
134 byte_size); in SetOptionValue()
140 if (byte_size == 0) in SetOptionValue()
142 byte_size); in SetOptionValue()
146 if (byte_size > 0 && format != lldb::eFormatAddressInfo) { in SetOptionValue()
169 m_byte_size.SetCurrentValue(byte_size); in SetOptionValue()
187 uint32_t &byte_size) { in ParserGDBFormatLetter() argument
220 byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in ParserGDBFormatLetter()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp260 const uint64_t byte_size = new_value_sp->GetData(data, data_error); in SetReturnValueObject() local
273 if (byte_size <= 16) { in SetReturnValueObject()
275 if (byte_size <= 8) { in SetReturnValueObject()
276 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject()
286 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
305 if (byte_size <= 16) { in SetReturnValueObject()
320 if (byte_size > 0) { in SetReturnValueObject()
324 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
489 std::optional<uint64_t> byte_size = in LoadValueFromConsecutiveGPRRegisters() local
491 if (!byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
[all …]
H A DABISysV_arm64.cpp232 const uint64_t byte_size = new_value_sp->GetData(data, data_error); in SetReturnValueObject() local
245 if (byte_size <= 16) { in SetReturnValueObject()
248 if (byte_size <= 8) { in SetReturnValueObject()
249 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject()
259 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject()
278 if (byte_size <= 16) { in SetReturnValueObject()
293 if (byte_size > 0) { in SetReturnValueObject()
297 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
463 std::optional<uint64_t> byte_size = in LoadValueFromConsecutiveGPRRegisters() local
466 if (byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteRegisterContext.cpp101 combined_data.resize(offset + parent_reg->byte_size); in ReadRegister()
102 if (m_reg_data.CopyData(parent_reg->byte_offset, parent_reg->byte_size, in ReadRegister()
104 parent_reg->byte_size) in ReadRegister()
106 offset += parent_reg->byte_size; in ReadRegister()
132 const size_t reg_byte_size = reg_info->byte_size; in PrivateSetRegisterValue()
169 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in PrivateSetRegisterValue()
174 m_reg_data.PeekData(reg_info->byte_offset, reg_info->byte_size)); in PrivateSetRegisterValue()
180 reg_info->byte_size, // src length in PrivateSetRegisterValue()
182 reg_info->byte_size, // dst length in PrivateSetRegisterValue()
236 (reginfo.byte_offset + reginfo.byte_size < in ReadRegisterBytes()
[all...]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
H A DABISysV_i386.cpp119 reg_info_32, arg_pos, reg_info_32->byte_size, reg_value); in PrepareTrivialCall()
129 reg_info_32, sp, reg_info_32->byte_size, reg_value); in PrepareTrivialCall()
147 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
153 if (process->ReadScalarIntegerFromMemory(current_stack_argument, byte_size, in ReadIntegerArgument()
155 current_stack_argument += byte_size; in ReadIntegerArgument()
390 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
392 if (!byte_size) in GetReturnValueObjectSimple()
407 switch (*byte_size) { in GetReturnValueObjectSimple()
463 if (*byte_size <= 12) // handles float, double, long double, __float80 in GetReturnValueObjectSimple()
475 if (*byte_size == 4) { in GetReturnValueObjectSimple()
[all …]
H A DABISysV_x86_64.cpp205 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
208 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
209 current_stack_argument += byte_size; in ReadIntegerArgument()
410 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
412 if (!byte_size) in GetReturnValueObjectSimple()
417 switch (*byte_size) { in GetReturnValueObjectSimple()
457 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
459 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
467 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
470 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
H A DABIWindows_x86_64.cpp222 uint32_t byte_size = (bit_width + (CHAR_BIT - 1)) / CHAR_BIT; in ReadIntegerArgument() local
225 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
226 current_stack_argument += byte_size; in ReadIntegerArgument()
418 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
420 if (!byte_size) in GetReturnValueObjectSimple()
425 switch (*byte_size) { in GetReturnValueObjectSimple()
465 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
467 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
475 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
478 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DMemory.cpp102 lldb::addr_t byte_size) { in AddInvalidRange() argument
103 if (byte_size > 0) { in AddInvalidRange()
105 InvalidRanges::Entry range(base_addr, byte_size); in AddInvalidRange()
112 lldb::addr_t byte_size) { in RemoveInvalidRange() argument
113 if (byte_size > 0) { in RemoveInvalidRange()
119 entry->GetByteSize() == byte_size) in RemoveInvalidRange()
267 AllocatedBlock::AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, in AllocatedBlock() argument
269 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock()
274 assert(byte_size > chunk_size); in AllocatedBlock()
360 AllocatedMemoryCache::AllocatePage(uint32_t byte_size, uint32_t permissions, in AllocatePage() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DUniqueDWARFASTType.h37 int32_t byte_size) { in UpdateToDefDIE() argument
44 if (byte_size) in UpdateToDefDIE()
45 m_byte_size = byte_size; in UpdateToDefDIE()
70 const int32_t byte_size,
89 const Declaration &decl, const int32_t byte_size, in Find() argument
94 return pos->second.Find(die, decl, byte_size, is_forward_declaration); in Find()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DExpressionVariable.cpp23 std::optional<uint64_t> byte_size = m_frozen_sp->GetByteSize(); in GetValueBytes() local
24 if (byte_size && *byte_size) { in GetValueBytes()
25 if (m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) { in GetValueBytes()
26 m_frozen_sp->GetValue().ResizeData(*byte_size); in GetValueBytes()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A 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);
239 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize() argument
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/RISCV/
H A DABISysV_riscv.cpp416 uint32_t byte_size) { in GetValObjFromIntRegs() argument
425 switch (byte_size) { in GetValObjFromIntRegs()
447 new DataBufferHeap(byte_size, 0)); in GetValObjFromIntRegs()
459 value.SetBytes(heap_data_up.release(), byte_size); in GetValObjFromIntRegs()
472 if (!SetSizedInteger(value.GetScalar(), raw_value, byte_size, is_signed)) in GetValObjFromIntRegs()
475 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetValObjFromIntRegs()
489 uint32_t type_flags, uint32_t byte_size) { in GetValObjFromFPRegs() argument
498 GetValObjFromIntRegs(thread, reg_ctx, machine, type_flags, byte_size); in GetValObjFromFPRegs()
502 if (byte_size <= 4) in GetValObjFromFPRegs()
511 if (byte_size <= 8) in GetValObjFromFPRegs()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp757 std::optional<uint64_t> byte_size = return_compiler_type.GetByteSize(&thread); in GetReturnValueObjectImpl() local
758 if (!byte_size) in GetReturnValueObjectImpl()
779 switch (*byte_size) { in GetReturnValueObjectImpl()
820 switch (*byte_size) { in GetReturnValueObjectImpl()
845 if (*byte_size <= sizeof(long double)) { in GetReturnValueObjectImpl()
856 if (*byte_size == sizeof(float)) { in GetReturnValueObjectImpl()
859 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectImpl()
862 } else if (*byte_size == sizeof(long double)) { in GetReturnValueObjectImpl()
877 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl()
881 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.cpp461 const size_t byte_size = compiler_type.GetByteSize(&thread).value_or(0); in GetReturnValueObjectSimple() local
462 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
465 if (!SetSizedInteger(value.GetScalar(), raw_value, byte_size, is_signed)) in GetReturnValueObjectSimple()
485 const size_t byte_size = compiler_type.GetByteSize(&thread).value_or(0); in GetReturnValueObjectSimple() local
486 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple()
488 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetReturnValueObjectSimple()
524 size_t byte_size = retType.getPrimitiveSizeInBits(); in GetReturnValueObjectImpl() local
525 if (1 != byte_size) // For boolean type. in GetReturnValueObjectImpl()
526 byte_size /= CHAR_BIT; in GetReturnValueObjectImpl()
528 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectImpl()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A 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);
72 AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, uint32_t permissions,
123 lldb::addr_t AllocateMemory(size_t byte_size, uint32_t permissions,
131 AllocatedBlockSP AllocatePage(uint32_t byte_size, uint32_t permissions,
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/PowerPC/
H A DABISysV_ppc.cpp327 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local
330 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument()
331 current_stack_argument += byte_size; in ReadIntegerArgument()
530 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
532 if (!byte_size) in GetReturnValueObjectSimple()
537 switch (*byte_size) { in GetReturnValueObjectSimple()
577 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
579 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple()
586 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple()
589 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DDumpRegisterValue.cpp116 reg_info.byte_size, // item_byte_size in DumpRegisterValue()
125 (reg_info.byte_size != 4 && reg_info.byte_size != 8)) in DumpRegisterValue()
129 reg_info.name, *reg_info.flags_type, reg_info.byte_size); in DumpRegisterValue()
134 if (reg_info.byte_size == 4) { in DumpRegisterValue()

1234567