| /llvm-project/lldb/unittests/Target/ |
| H A D | MemoryTest.cpp | 113 data_sp->GetByteSize(), error); in TEST_F() 119 data_sp->GetByteSize(), error); in TEST_F() 126 data_sp->GetByteSize(), error); in TEST_F() 127 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() 133 data_sp->GetByteSize(), error); in TEST_F() 134 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() 143 data_sp->GetByteSize(), error); in TEST_F() 144 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() 151 data_sp->GetByteSize(), error); in TEST_F() 152 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() [all …]
|
| /llvm-project/lldb/source/Core/ |
| H A D | AddressRange.cpp | 65 return (addr.GetOffset() - m_base_addr.GetOffset()) < GetByteSize(); in ContainsFileAddress() 75 return (file_addr - file_base_addr) < GetByteSize(); in ContainsFileAddress() 89 return (file_addr - file_base_addr) < GetByteSize(); in ContainsFileAddress() 97 return (addr.GetOffset() - m_base_addr.GetOffset()) < GetByteSize(); in ContainsLoadAddress() 107 return (load_addr - load_base_addr) < GetByteSize(); in ContainsLoadAddress() 121 return (load_addr - load_base_addr) < GetByteSize(); in ContainsLoadAddress() 127 addr_t lhs_end_addr = GetBaseAddress().GetFileAddress() + GetByteSize(); in Extend() 135 addr_t rhs_end_addr = rhs_base_addr + rhs_range.GetByteSize(); in Extend() 169 DumpAddress(s->AsRawOstream(), m_base_addr.GetOffset() + GetByteSize(), in Dump() 194 DumpAddressRange(s->AsRawOstream(), vmaddr, vmaddr + GetByteSize(), in Dump() [all …]
|
| H A D | Value.cpp | 62 v.m_data_buffer.GetByteSize()); in Value() 80 rhs.m_data_buffer.GetByteSize()); in operator =() 156 size_t curr_size = m_data_buffer.GetByteSize(); in AppendDataToHostBuffer() 162 const size_t scalar_size = rhs.m_value.GetByteSize(); in AppendDataToHostBuffer() 177 const size_t src_len = rhs.GetBuffer().GetByteSize(); in AppendDataToHostBuffer() 194 return m_data_buffer.GetByteSize(); in ResizeData() 226 if (std::optional<uint64_t> size = GetCompilerType().GetByteSize(scope)) { in GetValueByteSize() 304 if (m_data_buffer.GetByteSize()) { in GetData() 305 data.SetData(m_data_buffer.GetBytes(), m_data_buffer.GetByteSize(), in GetData() 324 std::optional<uint64_t> type_size = ast_type.GetByteSize( in GetValueAsData() [all...] |
| H A D | ValueObjectVTable.cpp | |
| /llvm-project/lldb/source/Plugins/UnwindAssembly/x86/ |
| H A D | UnwindAssembly-x86.cpp | 47 if (!func.GetBaseAddress().IsValid() || func.GetByteSize() == 0) in GetNonCallSiteUnwindPlanFromAssembly() 54 std::vector<uint8_t> function_text(func.GetByteSize()); in GetNonCallSiteUnwindPlanFromAssembly() 57 func.GetBaseAddress(), function_text.data(), func.GetByteSize(), in GetNonCallSiteUnwindPlanFromAssembly() 58 error) == func.GetByteSize()) { in GetNonCallSiteUnwindPlanFromAssembly() 62 function_text.data(), func.GetByteSize(), func, unwind_plan); in GetNonCallSiteUnwindPlanFromAssembly() 151 if (!func.GetBaseAddress().IsValid() || func.GetByteSize() == 0) in AugmentUnwindPlanFromCallSite() 155 std::vector<uint8_t> function_text(func.GetByteSize()); in AugmentUnwindPlanFromCallSite() 158 func.GetBaseAddress(), function_text.data(), func.GetByteSize(), in AugmentUnwindPlanFromCallSite() 159 error) == func.GetByteSize()) { in AugmentUnwindPlanFromCallSite() 163 function_text.data(), func.GetByteSize(), fun in AugmentUnwindPlanFromCallSite() [all...] |
| /llvm-project/lldb/source/Plugins/Process/elf-core/ |
| H A D | RegisterContextPOSIXCore_arm64.cpp | 31 if (ssve_data.GetByteSize() >= sizeof(sve::user_sve_header)) in Create() 35 if (sve_data.GetByteSize() >= sizeof(sve::user_sve_header)) in Create() 42 if (pac_data.GetByteSize() >= sizeof(uint64_t) * 2) in Create() 48 if (tls_data.GetByteSize() >= sizeof(uint64_t)) in Create() 53 if (za_data.GetByteSize() >= sizeof(sve::user_za_header)) in Create() 57 if (mte_data.GetByteSize() >= sizeof(uint64_t)) in Create() 64 if (zt_data.GetByteSize() >= 64) in Create() 69 if (fpmr_data.GetByteSize() >= sizeof(uint64_t)) in Create() 78 if (gcs_data.GetByteSize() >= sizeof(gcs_regs)) in RegisterContextCorePOSIX_arm64() 112 gpregset.GetByteSize())); in RegisterContextCorePOSIX_arm64() [all...] |
| H A D | RegisterContextPOSIXCore_ppc64le.cpp | 27 gpregset.GetByteSize()); in RegisterContextCorePOSIX_ppc64le() 34 fpregset.GetByteSize()); in RegisterContextCorePOSIX_ppc64le() 40 vmxregset.GetByteSize()); in RegisterContextCorePOSIX_ppc64le() 46 vsxregset.GetByteSize()); in RegisterContextCorePOSIX_ppc64le()
|
| H A D | RegisterContextPOSIXCore_powerpc.cpp | 24 gpregset.GetByteSize()); in RegisterContextCorePOSIX_powerpc() 31 fpregset.GetByteSize()); in RegisterContextCorePOSIX_powerpc() 37 vregset.GetByteSize()); in RegisterContextCorePOSIX_powerpc()
|
| H A D | ThreadElfCore.cpp | 302 if (GetSize(arch) > data.GetByteSize()) { in Parse() 305 GetSize(arch), data.GetByteSize()); in Parse() 398 if (GetSize(arch) > data.GetByteSize()) { in ELFLinuxSigInfo() 401 GetSize(arch), data.GetByteSize()); in GetSize() 568 if (size > data.GetByteSize()) { 571 GetSize(arch), data.GetByteSize()); 593 if (data.GetByteSize() - offset >= sizeof(sigfault.bounds)) {
|
| /llvm-project/lldb/source/Expression/ |
| H A D | Materializer.cpp | 81 m_persistent_variable_sp->GetByteSize().value_or(0), 8, in MakeAllocation() 120 m_persistent_variable_sp->GetByteSize().value_or(0), in MakeAllocation() 249 m_persistent_variable_sp->GetByteSize().value_or(0)); in Dematerialize() 294 (unsigned long long)m_persistent_variable_sp->GetByteSize() in Dematerialize() 304 m_persistent_variable_sp->GetByteSize().value_or(0), in Dematerialize() 369 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog() 386 DataBufferHeap data(m_persistent_variable_sp->GetByteSize().value_or(0), in DumpToLog() 390 m_persistent_variable_sp->GetByteSize().value_or(0), in DumpToLog() 396 DumpHexBytes(&dump_stream, data.GetBytes(), data.GetByteSize(), 16, in DumpToLog() 532 if (data.GetByteSize() < GetByteSiz in Materialize() 820 GetByteSize(ExecutionContextScope *scope) const override { GetByteSize() function in EntityVariable 863 GetByteSize(ExecutionContextScope *scope) const override { GetByteSize() function in EntityValueObject [all...] |
| /llvm-project/lldb/source/Utility/ |
| H A D | DataEncoder.cpp | 41 return llvm::ArrayRef<uint8_t>(m_data_sp->GetBytes(), GetByteSize()); in GetData() 44 size_t DataEncoder::GetByteSize() const { return m_data_sp->GetByteSize(); } in GetByteSize() function in DataEncoder 138 uint32_t offset = m_data_sp->GetByteSize(); in AppendU16() 139 m_data_sp->SetByteSize(m_data_sp->GetByteSize() + sizeof(value)); in AppendU16() 144 uint32_t offset = m_data_sp->GetByteSize(); in AppendU32() 145 m_data_sp->SetByteSize(m_data_sp->GetByteSize() + sizeof(value)); in AppendU32() 150 uint32_t offset = m_data_sp->GetByteSize(); in AppendU64() 151 m_data_sp->SetByteSize(m_data_sp->GetByteSize() + sizeof(value)); in AppendU64()
|
| H A D | DataExtractor.cpp | 163 offset_t bytes_available = data.GetByteSize() - offset; in DataExtractor() 235 return GetByteSize(); in SetData() 262 if (data_length > data.GetByteSize() - data_offset) in SetData() 263 data_length = data.GetByteSize() - data_offset; in SetData() 289 const size_t data_size = data_sp->GetByteSize(); in SetData() 303 size_t new_size = GetByteSize(); in SetData() 969 size_t data_size = GetByteSize(); in Copy() 972 return GetByteSize(); in Copy() 979 if (rhs.GetByteSize() == 0) in Append() 982 if (GetByteSize() == 0) in Append() [all …]
|
| /llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteRegisterContext.cpp | 169 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in PrivateSetRegisterValue() 201 buffer_sp->GetByteSize())); in GetPrimordialRegister() 226 std::min(buffer_sp->GetByteSize(), m_reg_data.GetByteSize())); in ReadRegisterBytes() 227 if (buffer_sp->GetByteSize() >= m_reg_data.GetByteSize()) { in ReadRegisterBytes() 230 } else if (buffer_sp->GetByteSize() > 0) { in ReadRegisterBytes() 237 buffer_sp->GetByteSize()); in ReadRegisterBytes() 252 m_reg_data.GetByteSize(), buffer_sp->GetByteSize()); in ReadRegisterBytes() 314 if (data.GetByteSize() < combined_size) in WriteRegister() 364 assert(m_reg_data.GetByteSize() >= in WriteRegisterBytes() 369 if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) in WriteRegisterBytes() [all …]
|
| /llvm-project/lldb/test/API/python_api/address_range/ |
| H A D | TestAddressRange.py | 49 self.assertEqual(range.GetByteSize(), 8) 56 self.assertEqual(range.GetByteSize(), 8) 73 range.GetByteSize(), 92 range.GetByteSize(), 117 self.assertEqual(range1.GetByteSize(), range1_copy.GetByteSize()) 124 self.assertEqual(range2.GetByteSize(), range2_copy.GetByteSize()) 131 self.assertEqual(range3.GetByteSize(), range3_copy.GetByteSize()) 214 range = lldb.SBAddressRange(addr, range.GetByteSize())
|
| /llvm-project/lldb/source/Symbol/ |
| H A D | Symbol.cpp | 60 m_size_is_valid(size_is_valid || range.GetByteSize() > 0), in Symbol() 192 intptr_t str_ptr = m_addr_range.GetByteSize(); in GetReExportedSymbolSharedLibrary() 218 return m_size_is_sibling ? m_addr_range.GetByteSize() : UINT32_MAX; in GetSiblingIndex() 232 const lldb::addr_t byte_size = GetByteSize(); in GetDescription() 273 GetByteSize(); in Dump() 289 s->Printf(format, GetByteSize(), m_flags, name.AsCString("")); in Dump() 296 intptr_t shlib = m_addr_range.GetByteSize(); in Dump() 308 s->Printf(format, m_addr_range.GetBaseAddress().GetOffset(), GetByteSize(), in Dump() 333 m_type_data = sc.line_entry.range.GetByteSize(); in GetPrologueByteSize() 359 addr.Slide(sc_temp.line_entry.range.GetByteSize()); in GetPrologueByteSize() 468 lldb::addr_t Symbol::GetByteSize() const { return m_addr_range.GetByteSize(); } GetByteSize() function in Symbol [all...] |
| H A D | ObjectFile.cpp | 91 if (!data_sp || data_sp->GetByteSize() == 0) { in FindPlugin() 101 file_size = FileSystem::Instance().GetByteSize(archive_file); in FindPlugin() 124 if (data_sp && data_sp->GetByteSize() > 0) { in FindPlugin() 192 module_sp, &file_spec, 0, FileSystem::Instance().GetByteSize(file_spec), in IsObjectFile() 207 FileSystem::Instance().GetByteSize(file); in GetModuleSpecifications() 282 m_data.SetData(header_data_sp, 0, header_data_sp->GetByteSize()); in ObjectFile() 467 addr, data_up->GetBytes(), data_up->GetByteSize(), error); in ReadMemory() 523 const uint64_t section_size = section->GetByteSize(); in ReadSectionData() 553 ReadMemory(process_sp, base_load_addr, section->GetByteSize())); in ReadSectionData() 555 section_data.SetData(data_sp, 0, data_sp->GetByteSize()); in ReadSectionData() [all...] |
| H A D | LineEntry.cpp | 153 const lldb::addr_t a_byte_size = a.range.GetByteSize(); in Compare() 154 const lldb::addr_t b_byte_size = b.range.GetByteSize(); in Compare() 195 range_end.Slide(complete_line_range.GetByteSize()); in GetSameLineContiguousAddressRange() 199 next_line_sc.line_entry.range.GetByteSize() == 0) in GetSameLineContiguousAddressRange()
|
| /llvm-project/lldb/include/lldb/Utility/ |
| H A D | DataBuffer.h | 50 virtual lldb::offset_t GetByteSize() const = 0; 60 return llvm::ArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData() 111 return llvm::MutableArrayRef<uint8_t>(GetBytes(), GetByteSize()); in GetData() 132 lldb::offset_t GetByteSize() const override { return m_size; } in GetByteSize() function
|
| H A D | DataEncoder.h | 256 size_t GetByteSize() const; 265 const uint32_t size = GetByteSize(); in BytesLeft() 285 bool ValidOffset(uint32_t offset) const { return offset < GetByteSize(); } in ValidOffset()
|
| /llvm-project/lldb/source/Target/ |
| H A D | Memory.cpp | 67 AddrRange chunk_range(pos->first, pos->second->GetByteSize()); in Flush() 119 entry->GetByteSize() == byte_size) in RemoveInvalidRange() 140 data_buffer_heap_sp->GetByteSize(), error); in GetL2CacheLine() 182 AddrRange chunk_range(pos->first, pos->second->GetByteSize()); in Read() 217 if (cache_line_offset >= first_cache_line->GetByteSize()) in Read() 222 size_t read_size = first_cache_line->GetByteSize() - cache_line_offset; in Read() 232 if (first_cache_line->GetByteSize() < m_L2_cache_line_byte_size && in Read() 255 if (read_size > second_cache_line->GetByteSize()) in Read() 256 read_size = second_cache_line->GetByteSize(); in Read() 290 const lldb::addr_t range_size = free_block.GetByteSize(); in ReserveBlock() [all...] |
| /llvm-project/lldb/unittests/Utility/ |
| H A D | RangeTest.cpp | 24 static_assert(std::is_same<uint32_t, decltype(r.GetByteSize())>::value, in TEST() 33 EXPECT_EQ(0U, r.GetByteSize()); in TEST() 41 EXPECT_EQ(5U, r.GetByteSize()); in TEST() 50 EXPECT_EQ(5U, r.GetByteSize()); in TEST() 72 EXPECT_EQ(5U, r.GetByteSize()); in TEST() 80 EXPECT_EQ(5U, r.GetByteSize()); in TEST() 85 EXPECT_EQ(5U, r.GetByteSize()); in TEST() 93 EXPECT_EQ(5U, r.GetByteSize()); in TEST()
|
| /llvm-project/lldb/source/Plugins/Process/Utility/ |
| H A D | RegisterContextMemory.cpp | 109 data_sp->GetByteSize(), in ReadAllRegisterValues() 110 error) == data_sp->GetByteSize()) { in ReadAllRegisterValues() 127 data_sp->GetByteSize(), in WriteAllRegisterValues() 128 error) == data_sp->GetByteSize()) in WriteAllRegisterValues()
|
| /llvm-project/lldb/source/API/ |
| H A D | SBSymbol.cpp | 126 AddressRange symbol_range(symbol_addr, m_opaque_ptr->GetByteSize()); in GetInstructions() 157 lldb::addr_t range_size = m_opaque_ptr->GetByteSize(); in GetEndAddress() 160 addr->Slide(m_opaque_ptr->GetByteSize()); in GetEndAddress() 176 return m_opaque_ptr->GetByteSize(); in GetSize()
|
| /llvm-project/lldb/include/lldb/Target/ |
| H A D | ProcessStructReader.h | 62 auto size = field_type.GetByteSize(nullptr); in ProcessStructReader() 70 auto total_size = struct_type.GetByteSize(nullptr); in ProcessStructReader() 91 if (offset + size > m_data.GetByteSize())
|
| /llvm-project/lldb/source/Plugins/ObjectContainer/Mach-O-Fileset/ |
| H A D | ObjectContainerMachOFileset.cpp | 46 : ObjectContainer(module_sp, nullptr, 0, data_sp->GetByteSize(), data_sp, in ObjectContainerMachOFileset() 73 if (!MagicBytesMatch(data_sp, 0, data_sp->GetByteSize())) in CreateMemoryInstance() 184 if (data.GetByteSize() < header_and_lc_size) { in ParseHeader() 207 if (m_data.GetByteSize() < header_and_lc_size) { in ParseHeader() 227 data.SetData(data_sp, data_offset, data_sp->GetByteSize()); in GetModuleSpecifications() 288 m_data.GetByteSize() - entry->fileoff, data_sp, in GetObjectFile()
|