| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | RegisterValue.cpp | 56 const uint32_t src_len = reg_info.byte_size; in GetAsMemoryData() 105 const uint32_t dst_len = reg_info.byte_size; in SetFromMemoryData() 176 if (reg_info.byte_size == 0) { in SetValueFromData() 183 if (!partial_data_ok && (src_len < reg_info.byte_size)) { in SetValueFromData() 190 if (src_len > reg_info.byte_size) in SetValueFromData() 191 src_len = reg_info.byte_size; in SetValueFromData() 204 if (reg_info.byte_size == 1) in SetValueFromData() 206 else if (reg_info.byte_size <= 2) in SetValueFromData() 208 else if (reg_info.byte_size <= 4) in SetValueFromData() 210 else if (reg_info.byte_size <= 8) in SetValueFromData() [all …]
|
| H A D | Scalar.cpp | 85 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 …]
|
| H A D | DataExtractor.cpp | 108 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() 519 size_t byte_size) const { in GetMaxU32() 520 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32() 521 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32() 525 size_t byte_size) const { in GetMaxU64() 526 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64() 527 switch (byte_size) { in GetMaxU64() [all …]
|
| /openbsd-src/gnu/llvm/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 | 133 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()
|
| /openbsd-src/gnu/llvm/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() 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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ABI/AArch64/ |
| H A D | ABIMacOSX_arm64.cpp | 260 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() 306 if (byte_size <= RegisterValue::GetMaxByteSize()) { in SetReturnValueObject() 317 byte_size); in SetReturnValueObject() 329 if (byte_size > 0) { in SetReturnValueObject() 333 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject() [all …]
|
| H A D | ABISysV_arm64.cpp | 232 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() 279 if (byte_size <= RegisterValue::GetMaxByteSize()) { in SetReturnValueObject() 290 byte_size); in SetReturnValueObject() 302 if (byte_size > 0) { in SetReturnValueObject() 306 if (byte_size <= v0_info->byte_size) { in SetReturnValueObject() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteRegisterContext.cpp | 100 combined_data.resize(offset + parent_reg->byte_size); in ReadRegister() 101 if (m_reg_data.CopyData(parent_reg->byte_offset, parent_reg->byte_size, in ReadRegister() 103 parent_reg->byte_size) in ReadRegister() 105 offset += parent_reg->byte_size; in ReadRegister() 131 const size_t reg_byte_size = reg_info->byte_size; in PrivateSetRegisterValue() 168 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in PrivateSetRegisterValue() 173 m_reg_data.PeekData(reg_info->byte_offset, reg_info->byte_size)); in PrivateSetRegisterValue() 179 reg_info->byte_size, // src length in PrivateSetRegisterValue() 181 reg_info->byte_size, // dst length in PrivateSetRegisterValue() 233 (reginfo.byte_offset + reginfo.byte_size <= in ReadRegisterBytes() [all …]
|
| /openbsd-src/gnu/llvm/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() 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 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() 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 …]
|
| /openbsd-src/gnu/llvm/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() 253 AllocatedBlock::AllocatedBlock(lldb::addr_t addr, uint32_t byte_size, in AllocatedBlock() argument 255 : m_range(addr, byte_size), m_permissions(permissions), in AllocatedBlock() 260 assert(byte_size > chunk_size); in AllocatedBlock() 346 AllocatedMemoryCache::AllocatePage(uint32_t byte_size, uint32_t permissions, in AllocatePage() argument [all …]
|
| /openbsd-src/gnu/llvm/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); 237 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize() argument
|
| /openbsd-src/gnu/llvm/lldb/source/Expression/ |
| H A D | ExpressionVariable.cpp | 21 std::optional<uint64_t> byte_size = m_frozen_sp->GetByteSize(); in GetValueBytes() local 22 if (byte_size && *byte_size) { in GetValueBytes() 23 if (m_frozen_sp->GetDataExtractor().GetByteSize() < *byte_size) { in GetValueBytes() 24 m_frozen_sp->GetValue().ResizeData(*byte_size); in GetValueBytes()
|
| /openbsd-src/gnu/llvm/lldb/examples/python/ |
| H A D | types.py | 164 byte_size = type.GetByteSize() 169 print('Total byte size: %u' % (byte_size)) 172 print('Padding percentage: %2.2f %%' % ((float(padding) / float(byte_size)) * 100.0)) 186 byte_size = type.GetByteSize() 188 … print('%+4u <%3u> %s%s %s;' % (base_offset, byte_size, ' ' * depth, typename, member_name)) 190 print('%+4u {%3u} %s%s' % (base_offset, byte_size, ' ' * depth, typename)) 195 return (base_offset + byte_size, padding) 238 if prev_end_offset < byte_size: 239 last_member_padding = byte_size - prev_end_offset 247 prev_end_offset = base_offset + byte_size
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | UniqueDWARFASTType.h | 25 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()
|
| /openbsd-src/gnu/llvm/lldb/source/Core/ |
| H A D | AddressRange.cpp | 33 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()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ABI/Mips/ |
| H A D | ABISysV_mips64.cpp | 718 std::optional<uint64_t> byte_size = return_compiler_type.GetByteSize(&thread); in GetReturnValueObjectImpl() local 719 if (!byte_size) in GetReturnValueObjectImpl() 740 switch (*byte_size) { in GetReturnValueObjectImpl() 781 switch (*byte_size) { in GetReturnValueObjectImpl() 806 if (*byte_size <= sizeof(long double)) { in GetReturnValueObjectImpl() 817 if (*byte_size == sizeof(float)) { in GetReturnValueObjectImpl() 820 } else if (*byte_size == sizeof(double)) { in GetReturnValueObjectImpl() 823 } else if (*byte_size == sizeof(long double)) { in GetReturnValueObjectImpl() 838 0, 8, data_sp->GetBytes(), *byte_size - 8, target_byte_order); in GetReturnValueObjectImpl() 842 0, 8, data_sp->GetBytes() + 8, *byte_size - 8, in GetReturnValueObjectImpl() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Process/Windows/Common/x64/ |
| H A D | RegisterContextWindows_x64.cpp | 427 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 431 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 435 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 439 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 443 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 447 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 451 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 455 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 459 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() 463 reg_info->byte_size, endian::InlHostByteOrder()); in ReadRegister() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/ABI/ARC/ |
| H A D | ABISysV_arc.cpp | 461 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 …]
|
| /openbsd-src/gnu/llvm/lldb/source/Symbol/ |
| H A D | CompilerType.cpp | 834 lldb::offset_t byte_offset, size_t byte_size, in DumpTypeValue() argument 841 byte_size, bitfield_bit_size, in DumpTypeValue() 894 std::optional<uint64_t> byte_size = GetByteSize(exe_scope); in GetValueAsScalar() local 895 if (!byte_size) in GetValueAsScalar() 904 if (*byte_size <= sizeof(unsigned long long)) { in GetValueAsScalar() 905 uint64_t uval64 = data.GetMaxU64(&offset, *byte_size); in GetValueAsScalar() 906 if (*byte_size <= sizeof(unsigned int)) { in GetValueAsScalar() 909 } else if (*byte_size <= sizeof(unsigned long)) { in GetValueAsScalar() 912 } else if (*byte_size <= sizeof(unsigned long long)) { in GetValueAsScalar() 921 if (*byte_size <= sizeof(long long)) { in GetValueAsScalar() [all …]
|
| /openbsd-src/gnu/llvm/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); 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,
|