| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | RegisterValue.cpp | 51 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 D | Scalar.cpp | 86 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 658 fits = integer.isSignedIntN(byte_size * 8); in SetValueFromCString() [all …]
|
| H A D | DataExtractor.cpp | 109 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 D | ELFHeader.cpp | 27 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 D | RegisterContextPOSIXCore_ppc64le.cpp | 71 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 D | RegisterContextPOSIXCore_powerpc.cpp | 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() 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 D | RegisterContextPOSIXCore_s390x.cpp | 60 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 D | RegisterContextPOSIXCore_arm64.cpp | 248 if (offset + reg_info->byte_size <= GetGPRSize()) { in ReadRegister() 250 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister() 264 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister() 297 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister() 311 uint64_t byte_size = 1; in ReadRegister() local 315 byte_size = 16; in ReadRegister() 320 value.SetFromMemoryData(*reg_info, src, byte_size, lldb::eByteOrderLittle, in ReadRegister() 328 reg_info->byte_size, lldb::eByteOrderLittle, in ReadRegister() 339 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister() 344 reg_info->byte_size, lldb::eByteOrderLittle, error); in ReadRegister() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Interpreter/ |
| H A D | OptionGroupFormat.cpp | 110 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() 170 m_byte_size.SetCurrentValue(byte_size); in SetOptionValue() 188 uint32_t &byte_size) { in ParserGDBFormatLetter() argument 221 byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in ParserGDBFormatLetter() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ |
| H A D | ABIMacOSX_arm64.cpp | 258 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() 304 if (byte_size <= 16) { in SetReturnValueObject() 322 if (byte_size > 0) { in SetReturnValueObject() 326 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject() 440 std::optional<uint64_t> byte_size = llvm::expectedToOptional( in LoadValueFromConsecutiveGPRRegisters() local 442 if (!byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters() [all …]
|
| H A D | ABISysV_arm64.cpp | 299 const uint64_t byte_size = new_value_sp->GetData(data, data_error); in SetReturnValueObject() local 312 if (byte_size <= 16) { in SetReturnValueObject() 315 if (byte_size <= 8) { in SetReturnValueObject() 316 uint64_t raw_value = data.GetMaxU64(&offset, byte_size); in SetReturnValueObject() 326 raw_value = data.GetMaxU64(&offset, byte_size - offset); in SetReturnValueObject() 346 if (byte_size <= 16) { in SetReturnValueObject() 364 if (byte_size > 0) { in SetReturnValueObject() 368 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject() 483 std::optional<uint64_t> byte_size = llvm::expectedToOptional( in LoadValueFromConsecutiveGPRRegisters() local 486 if (byte_size || *byte_size == 0) in LoadValueFromConsecutiveGPRRegisters() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteRegisterContext.cpp | 101 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 D | ABISysV_i386.cpp | 119 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() 395 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local 397 if (!byte_size) in GetReturnValueObjectSimple() 412 switch (*byte_size) { in GetReturnValueObjectSimple() 468 if (*byte_size <= 12) // handles float, double, long double, __float80 in GetReturnValueObjectSimple() 480 if (*byte_size == 4) { in GetReturnValueObjectSimple() [all …]
|
| H A D | ABISysV_x86_64.cpp | 207 uint32_t byte_size = (bit_width + (8 - 1)) / 8; in ReadIntegerArgument() local 210 current_stack_argument, byte_size, is_signed, scalar, error)) { in ReadIntegerArgument() 211 current_stack_argument += byte_size; in ReadIntegerArgument() 415 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local 417 if (!byte_size) in GetReturnValueObjectSimple() 422 switch (*byte_size) { in GetReturnValueObjectSimple() 462 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local 464 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple() 472 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple() 475 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple() [all …]
|
| H A D | ABIWindows_x86_64.cpp | 222 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() 421 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local 423 if (!byte_size) in GetReturnValueObjectSimple() 428 switch (*byte_size) { in GetReturnValueObjectSimple() 468 std::optional<uint64_t> byte_size = in GetReturnValueObjectSimple() local 470 if (byte_size && *byte_size <= sizeof(long double)) { in GetReturnValueObjectSimple() 478 if (*byte_size == sizeof(float)) { in GetReturnValueObjectSimple() 481 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectSimple() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | Memory.cpp | 102 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() 268 AllocatedBlock::AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, in AllocatedBlock() argument 270 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock() 275 assert(byte_size > chunk_size); in AllocatedBlock() 361 AllocatedMemoryCache::AllocatePage(uint32_t byte_size, uint32_t permissions, in AllocatePage() argument [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | UniqueDWARFASTType.h | 37 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()
|
| H A D | UniqueDWARFASTType.cpp | 26 const int32_t byte_size, in IsSizeAndDeclarationMatching() argument 35 if (udt.m_byte_size > 0 && byte_size > 0 && udt.m_byte_size != byte_size) in IsSizeAndDeclarationMatching() 52 const int32_t byte_size, bool is_forward_declaration) { in Find() argument 58 if (!IsSizeAndDeclarationMatching(udt, die, decl, byte_size, in Find()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
| H A D | AddressRange.h | 48 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/Expression/ |
| H A D | ExpressionVariable.cpp | 23 std::optional<uint64_t> byte_size = in GetValueBytes() local 25 if (byte_size && *byte_size) { in GetValueBytes() 26 if (m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) { in GetValueBytes() 27 m_frozen_sp->GetValue().ResizeData(*byte_size); in GetValueBytes()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/ |
| H A D | ABISysV_arc.cpp | 462 const size_t byte_size = in GetReturnValueObjectSimple() local 465 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple() 468 if (!SetSizedInteger(value.GetScalar(), raw_value, byte_size, is_signed)) in GetReturnValueObjectSimple() 488 const size_t byte_size = in GetReturnValueObjectSimple() local 491 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectSimple() 493 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetReturnValueObjectSimple() 529 size_t byte_size = retType.getPrimitiveSizeInBits(); in GetReturnValueObjectImpl() local 530 if (1 != byte_size) // For boolean type. in GetReturnValueObjectImpl() 531 byte_size /= CHAR_BIT; in GetReturnValueObjectImpl() 533 auto raw_value = ReadRawValue(reg_ctx, byte_size); in GetReturnValueObjectImpl() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/Mips/ |
| H A D | ABISysV_mips64.cpp | 753 std::optional<uint64_t> byte_size = in GetReturnValueObjectImpl() local 755 if (!byte_size) in GetReturnValueObjectImpl() 776 switch (*byte_size) { in GetReturnValueObjectImpl() 817 switch (*byte_size) { in GetReturnValueObjectImpl() 842 if (*byte_size <= sizeof(long double)) { in GetReturnValueObjectImpl() 853 if (*byte_size == sizeof(float)) { in GetReturnValueObjectImpl() 856 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectImpl() 859 } else if (*byte_size == sizeof(long double)) { in GetReturnValueObjectImpl() 874 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl() 878 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl() [all …]
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
| H A D | Memory.h | 36 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, 133 AllocatedBlockSP AllocatePage(uint32_t byte_size, uint32_t permissions,
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ABI/LoongArch/ |
| H A D | ABISysV_loongarch.cpp | 382 uint32_t byte_size) { in GetValObjFromIntRegs() argument 391 switch (byte_size) { in GetValObjFromIntRegs() 414 new DataBufferHeap(byte_size, 0)); in GetValObjFromIntRegs() 426 value.SetBytes(heap_data_up.release(), byte_size); in GetValObjFromIntRegs() 438 if (!SetSizedInteger(value.GetScalar(), raw_value, byte_size, in GetValObjFromIntRegs() 442 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetValObjFromIntRegs() 457 uint32_t byte_size) { in GetValObjFromFPRegs() argument 462 if (byte_size <= 8) in GetValObjFromFPRegs() 469 if (!SetSizedFloat(value.GetScalar(), raw_value, byte_size)) in GetValObjFromFPRegs() 476 return GetValObjFromIntRegs(thread, reg_ctx, machine, type_flags, byte_size); in GetValObjFromFPRegs() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | DumpRegisterValue.cpp | 116 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()
|