Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp166 if (reg_info.byte_size == 0) { in SetValueFromData()
191 if (reg_info.byte_size == 1) in SetValueFromData()
277 if (bytes.size() != byte_size) in ParseVectorEncoding()
326 const uint32_t byte_size = reg_info->byte_size; in SetValueFromString() local
354 uval64, byte_size); in SetValueFromString()
382 ival64, byte_size); in SetValueFromString()
710 if (byte_size == 0) { in SetUInt()
712 } else if (byte_size == 1) { in SetUInt()
714 } else if (byte_size <= 2) { in SetUInt()
716 } else if (byte_size <= 4) { in SetUInt()
[all …]
H A DScalar.cpp86 size_t byte_size = GetByteSize(); in GetData() local
87 if (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()
661 fits = integer.isIntN(byte_size * 8); in SetValueFromCString()
665 value_str, byte_size); in SetValueFromCString()
714 if (data.GetByteSize() < byte_size) in SetValueFromData()
731 if (byte_size == sizeof(float)) in SetValueFromData()
[all …]
H A DDataExtractor.cpp113 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()
521 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32()
522 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
527 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64()
528 switch (byte_size) { in GetMaxU64()
551 switch (byte_size) { in GetMaxU64_unchecked()
562 *offset_ptr += byte_size; in GetMaxU64_unchecked()
570 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
[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()
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()
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()
237 if (!GetMaxU64(data, offset, &sh_flags, byte_size)) in Parse()
328 const bool parsing_32 = byte_size == 4; 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()
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()
94 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
101 if (tmp_offset != reg_info->byte_size / 2) { in ReadRegister()
110 if (offset == reg_info->byte_size) { in ReadRegister()
116 uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); in ReadRegister()
118 if (offset == reg_info->byte_offset + reg_info->byte_size) { 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.cpp221 if (offset + reg_info->byte_size <= GetGPRSize()) { in ReadRegister()
223 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
237 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
270 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
284 uint64_t byte_size = 1; in ReadRegister() local
288 byte_size = 16; in ReadRegister()
293 value.SetFromMemoryData(*reg_info, src, byte_size, lldb::eByteOrderLittle, in ReadRegister()
301 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister()
312 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister()
356 reg_info->byte_size, lldb::eByteOrderLittle, 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()
134 byte_size); in SetOptionValue()
140 if (byte_size == 0) in SetOptionValue()
142 byte_size); in SetOptionValue()
169 m_byte_size.SetCurrentValue(byte_size); in SetOptionValue()
187 uint32_t &byte_size) { in ParserGDBFormatLetter() argument
255 byte_size = 1; in ParserGDBFormatLetter()
257 byte_size = 2; in ParserGDBFormatLetter()
259 byte_size = 4; in ParserGDBFormatLetter()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/
H A DABIMacOSX_arm64.cpp273 if (byte_size <= 16) { in SetReturnValueObject()
275 if (byte_size <= 8) { in SetReturnValueObject()
320 if (byte_size > 0) { in SetReturnValueObject()
324 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject()
491 if (!byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
643 if (!byte_size) in GetReturnValueObjectImpl()
653 if (*byte_size <= 8) { in GetReturnValueObjectImpl()
661 switch (*byte_size) { in GetReturnValueObjectImpl()
672 x0_reg_info->byte_size + x1_reg_info->byte_size) { in GetReturnValueObjectImpl()
767 if (*byte_size > 0) { in GetReturnValueObjectImpl()
[all …]
H A DABISysV_arm64.cpp245 if (byte_size <= 16) { in SetReturnValueObject()
248 if (byte_size <= 8) { 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()
466 if (byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters()
613 if (!byte_size) in GetReturnValueObjectImpl()
623 if (*byte_size <= 8) { in GetReturnValueObjectImpl()
632 switch (*byte_size) { in GetReturnValueObjectImpl()
644 x0_reg_info->byte_size + x1_reg_info->byte_size) { in GetReturnValueObjectImpl()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/X86/
H A DABISysV_i386.cpp155 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()
475 if (*byte_size == 4) { in GetReturnValueObjectSimple()
479 } else if (*byte_size == 8) { in GetReturnValueObjectSimple()
486 } else if (*byte_size == 12) { in GetReturnValueObjectSimple()
515 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
517 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
523 if (*byte_size <= vec_reg->byte_size) { in GetReturnValueObjectSimple()
[all …]
H A DABISysV_x86_64.cpp209 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()
496 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
498 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
505 if (*byte_size <= altivec_reg->byte_size) { in GetReturnValueObjectSimple()
[all …]
H A DABIWindows_x86_64.cpp226 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()
503 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local
505 if (byte_size && *byte_size > 0) { in GetReturnValueObjectSimple()
512 if (*byte_size <= xmm_reg->byte_size) { in GetReturnValueObjectSimple()
[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()
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()
236 (reginfo.byte_offset + reginfo.byte_size <= in ReadRegisterBytes()
311 combined_size += parent_reg->byte_size; in WriteRegister()
326 offset += parent_reg->byte_size; in WriteRegister()
348 reg_info->byte_size}); in SetPrimordialRegister()
365 reg_info->byte_offset + reg_info->byte_size); in WriteRegisterBytes()
683 const uint32_t reg_byte_size = reg_info->byte_size; in WriteAllRegisterValues()
[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()
269 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock()
274 assert(byte_size > chunk_size); in AllocatedBlock()
364 const size_t num_pages = (byte_size + page_size - 1) / page_size; in AllocatePage()
397 addr = (*pos).second->ReserveBlock(byte_size); in AllocateMemory()
[all …]
/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);
237 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize() argument
/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/source/Plugins/SymbolFile/DWARF/
H A DUniqueDWARFASTType.h27 const Declaration &decl, int32_t byte_size) in UniqueDWARFASTType() argument
29 m_byte_size(byte_size) {} in UniqueDWARFASTType()
66 const int32_t byte_size, UniqueDWARFASTType &entry) const;
84 const int32_t byte_size, UniqueDWARFASTType &entry) const { in Find() argument
88 return pos->second.Find(die, decl, byte_size, entry); in Find()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/RISCV/
H A DABISysV_riscv.cpp415 uint32_t byte_size) { in GetValObjFromIntRegs() argument
424 switch (byte_size) { in GetValObjFromIntRegs()
446 new DataBufferHeap(byte_size, 0)); in GetValObjFromIntRegs()
458 value.SetBytes(heap_data_up.release(), byte_size); in GetValObjFromIntRegs()
474 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetValObjFromIntRegs()
488 uint32_t type_flags, uint32_t byte_size) { in GetValObjFromFPRegs() argument
501 if (byte_size <= 4) in GetValObjFromFPRegs()
510 if (byte_size <= 8) in GetValObjFromFPRegs()
519 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetValObjFromFPRegs()
600 const uint32_t byte_size = type.getPrimitiveSizeInBits() / CHAR_BIT; in GetReturnValueObjectImpl() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A 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()
H A DDumpRegisterValue.cpp115 reg_info.byte_size, // item_byte_size in DumpRegisterValue()
124 (reg_info.byte_size != 4 && reg_info.byte_size != 8)) in DumpRegisterValue()
128 reg_info.name, *reg_info.flags_type, reg_info.byte_size); in DumpRegisterValue()
133 if (reg_info.byte_size == 4) { in DumpRegisterValue()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/
H A DABISysV_mips64.cpp758 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()
908 if (*byte_size <= 16) { in GetReturnValueObjectImpl()
1085 if (*byte_size <= 8) in GetReturnValueObjectImpl()
1099 if (bytes_copied != r2_info->byte_size) 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()
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()
543 const size_t byte_size = retType.getPrimitiveSizeInBits() / CHAR_BIT; in GetReturnValueObjectImpl() local
544 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,

123456