Home
last modified time | relevance | path

Searched refs:buffer_sp (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/lldb/source/API/
DSBData.cpp398 lldb::DataBufferSP buffer_sp(new DataBufferHeap(data, data_len)); in CreateDataFromCString() local
400 new DataExtractor(buffer_sp, endian, addr_byte_size)); in CreateDataFromCString()
420 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt64Array() local
422 new DataExtractor(buffer_sp, endian, addr_byte_size)); in CreateDataFromUInt64Array()
442 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromUInt32Array() local
444 new DataExtractor(buffer_sp, endian, addr_byte_size)); in CreateDataFromUInt32Array()
464 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromSInt64Array() local
466 new DataExtractor(buffer_sp, endian, addr_byte_size)); in CreateDataFromSInt64Array()
486 lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len)); in CreateDataFromSInt32Array() local
488 new DataExtractor(buffer_sp, endian, addr_byte_size)); in CreateDataFromSInt32Array()
[all …]
/external/llvm-project/lldb/source/Plugins/Language/ObjC/
DNSDictionary.cpp675 DataBufferSP buffer_sp(new DataBufferHeap(2 * m_ptr_size, 0)); in GetChildAtIndex() local
678 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
682 uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
689 DataExtractor data(buffer_sp, m_order, m_ptr_size); in GetChildAtIndex()
802 DataBufferSP buffer_sp(new DataBufferHeap(2 * m_ptr_size, 0)); in GetChildAtIndex() local
808 uint32_t *data_ptr = reinterpret_cast<uint32_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
813 uint64_t *data_ptr = reinterpret_cast<uint64_t *>(buffer_sp->GetBytes()); in GetChildAtIndex()
823 DataExtractor data(buffer_sp, m_order, m_ptr_size); in GetChildAtIndex()
886 DataBufferSP buffer_sp(new DataBufferHeap(2 * ptr_size, 0)); in GetChildAtIndex() local
889 uint64_t *data_ptr = (uint64_t *)buffer_sp->GetBytes(); in GetChildAtIndex()
[all …]
DCF.cpp161 DataBufferSP buffer_sp(new DataBufferHeap(num_bytes, 0)); in CFBitVectorSummaryProvider() local
163 process_sp->ReadMemory(data_ptr, buffer_sp->GetBytes(), num_bytes, error); in CFBitVectorSummaryProvider()
166 uint8_t *bytes = buffer_sp->GetBytes(); in CFBitVectorSummaryProvider()
DNSSet.cpp645 DataBufferSP buffer_sp(new DataBufferHeap(m_ptr_size, 0)); in GetChildAtIndex() local
651 *reinterpret_cast<uint32_t *>(buffer_sp->GetBytes()) = in GetChildAtIndex()
655 *reinterpret_cast<uint64_t *>(buffer_sp->GetBytes()) = in GetChildAtIndex()
664 DataExtractor data(buffer_sp, m_order, m_ptr_size); in GetChildAtIndex()
/external/llvm-project/lldb/include/lldb/Target/
DProcessStructReader.h72 lldb::DataBufferSP buffer_sp(new DataBufferHeap(*total_size, 0)); in ProcessStructReader()
74 process->ReadMemoryFromInferior(base_addr, buffer_sp->GetBytes(), in ProcessStructReader()
78 m_data = DataExtractor(buffer_sp, m_byte_order, m_addr_byte_size); in ProcessStructReader()
/external/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
DLibCxxVector.cpp218 DataBufferSP buffer_sp(new DataBufferHeap(*size, 0)); in GetChildAtIndex() local
219 if (bit_set && buffer_sp && buffer_sp->GetBytes()) { in GetChildAtIndex()
221 *(buffer_sp->GetBytes()) = 1; in GetChildAtIndex()
227 DataExtractor(buffer_sp, process_sp->GetByteOrder(), in GetChildAtIndex()
DLibCxx.cpp297 DataBufferSP buffer_sp(new DataBufferHeap(*size, 0)); in Update() local
300 process_sp->ReadMemory(addr, buffer_sp->GetBytes(), in Update()
301 buffer_sp->GetByteSize(), error); in Update()
304 DataExtractor extractor(buffer_sp, process_sp->GetByteOrder(), in Update()
/external/llvm-project/lldb/source/Core/
DOpcode.cpp131 DataBufferSP buffer_sp; in GetData() local
133 buffer_sp = std::make_shared<DataBufferHeap>(buf, byte_size); in GetData()
135 data.SetData(buffer_sp); in GetData()
DValueObject.cpp885 DataBufferSP buffer_sp(new DataBufferHeap(byte_size, 0)); in SetData() local
886 m_data.SetData(buffer_sp, 0); in SetData()
910 ValueObject::ReadPointedString(lldb::DataBufferSP &buffer_sp, Status &error, in ReadPointedString() argument
921 CopyStringDataToBufferSP(s, buffer_sp); in ReadPointedString()
964 CopyStringDataToBufferSP(s, buffer_sp); in ReadPointedString()
967 buffer_sp = std::make_shared<DataBufferHeap>(cstr_len, 0); in ReadPointedString()
968 memcpy(buffer_sp->GetBytes(), cstr, cstr_len); in ReadPointedString()
973 CopyStringDataToBufferSP(s, buffer_sp); in ReadPointedString()
1045 CopyStringDataToBufferSP(s, buffer_sp); in ReadPointedString()
1237 lldb::DataBufferSP buffer_sp; in DumpPrintableRepresentation() local
[all …]
/external/llvm-project/lldb/source/Host/netbsd/
DHostNetBSD.cpp107 auto buffer_sp = FileSystem::Instance().CreateDataBuffer( in GetNetBSDProcessCPUType() local
109 if (buffer_sp) { in GetNetBSDProcessCPUType()
112 {buffer_sp->GetChars(), size_t(buffer_sp->GetByteSize())}) in GetNetBSDProcessCPUType()
/external/llvm-project/lldb/source/DataFormatters/
DTypeFormat.cpp81 DataBufferSP buffer_sp(new DataBufferHeap(max_len + 1, 0)); in FormatObject() local
84 address, (char *)buffer_sp->GetBytes(), max_len, error) && in FormatObject()
86 data.SetData(buffer_sp); in FormatObject()
DStringPrinter.cpp453 lldb::DataBufferSP buffer_sp(new DataBufferHeap(bufferSPSize, 0)); in ReadEncodedBufferAndDumpToStream() local
458 if (sourceSize != 0 && !buffer_sp->GetBytes()) in ReadEncodedBufferAndDumpToStream()
462 char *buffer = reinterpret_cast<char *>(buffer_sp->GetBytes()); in ReadEncodedBufferAndDumpToStream()
478 DataExtractor data(buffer_sp, process_sp->GetByteOrder(), in ReadEncodedBufferAndDumpToStream()
/external/llvm-project/lldb/unittests/Process/POSIX/
DNativeProcessELFTest.cpp37 DataBufferSP buffer_sp( in CreateAuxvData() local
39 DataEncoder encoder(buffer_sp, process.GetByteOrder(), addr_size); in CreateAuxvData()
46 llvm::toStringRef(buffer_sp->GetData()), ""); in CreateAuxvData()
/external/llvm-project/lldb/source/Host/linux/
DHost.cpp126 auto buffer_sp = FileSystem::Instance().CreateDataBuffer(exe_path, 0x20, 0); in GetELFProcessCPUType() local
127 if (!buffer_sp) in GetELFProcessCPUType()
132 {buffer_sp->GetChars(), size_t(buffer_sp->GetByteSize())}) in GetELFProcessCPUType()
/external/llvm-project/lldb/source/Plugins/ObjectFile/wasm/
DObjectFileWasm.cpp383 auto buffer_sp = MapFileData(m_file, size, offset); in ReadImageData() local
384 return DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()); in ReadImageData()
394 DataBufferSP buffer_sp(data_up.release()); in ReadImageData() local
395 data.SetData(buffer_sp, 0, buffer_sp->GetByteSize()); in ReadImageData()
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteRegisterContext.cpp144 DataBufferSP buffer_sp(new DataBufferHeap(&new_reg_val, sizeof(new_reg_val))); in PrivateSetRegisterValue() local
145 DataExtractor data(buffer_sp, endian::InlHostByteOrder(), sizeof(void *)); in PrivateSetRegisterValue()
177 if (DataBufferSP buffer_sp = in GetPrimordialRegister() local
180 lldb_reg, llvm::ArrayRef<uint8_t>(buffer_sp->GetBytes(), in GetPrimordialRegister()
181 buffer_sp->GetByteSize())); in GetPrimordialRegister()
203 if (DataBufferSP buffer_sp = in ReadRegisterBytes() local
206 buffer_sp->GetBytes(), in ReadRegisterBytes()
207 std::min(buffer_sp->GetByteSize(), m_reg_data.GetByteSize())); in ReadRegisterBytes()
208 if (buffer_sp->GetByteSize() >= m_reg_data.GetByteSize()) { in ReadRegisterBytes()
211 } else if (buffer_sp->GetByteSize() > 0) { in ReadRegisterBytes()
[all …]
DGDBRemoteCommunicationClient.cpp3265 DataBufferSP buffer_sp( in ReadRegister() local
3267 response.GetHexBytes(buffer_sp->GetData(), '\xcc'); in ReadRegister()
3268 return buffer_sp; in ReadRegister()
3280 DataBufferSP buffer_sp( in ReadAllRegisters() local
3282 response.GetHexBytes(buffer_sp->GetData(), '\xcc'); in ReadAllRegisters()
3283 return buffer_sp; in ReadAllRegisters()
/external/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCRuntimeV1.cpp236 lldb::DataBufferSP buffer_sp(new DataBufferHeap(1024, 0)); in Initialize() local
239 name_ptr, (char *)buffer_sp->GetBytes(), 1024, error); in Initialize()
247 m_name = ConstString((char *)buffer_sp->GetBytes()); in Initialize()
/external/llvm-project/lldb/unittests/Process/gdb-remote/
DGDBRemoteCommunicationClientTest.cpp126 auto buffer_sp = read_result.get(); in TEST_F() local
127 ASSERT_TRUE(bool(buffer_sp)); in TEST_F()
129 memcmp(buffer_sp->GetBytes(), one_register, sizeof one_register)); in TEST_F()
134 buffer_sp = read_result.get(); in TEST_F()
135 ASSERT_TRUE(bool(buffer_sp)); in TEST_F()
137 memcmp(buffer_sp->GetBytes(), all_registers, sizeof all_registers)); in TEST_F()
/external/llvm-project/lldb/source/Utility/
DDataExtractor.cpp990 DataBufferSP buffer_sp(buffer_heap_ptr = new DataBufferHeap(bytes, 0)); in Append() local
992 if (!buffer_sp || buffer_heap_ptr == nullptr) in Append()
1000 SetData(buffer_sp); in Append()
1015 DataBufferSP buffer_sp(buffer_heap_ptr = new DataBufferHeap(bytes, 0)); in Append() local
1017 if (!buffer_sp || buffer_heap_ptr == nullptr) in Append()
1027 SetData(buffer_sp); in Append()
/external/llvm-project/lldb/source/Plugins/Platform/POSIX/
DPlatformPOSIX.cpp231 lldb::DataBufferSP buffer_sp(new DataBufferHeap(1024, 0)); in GetFile() local
235 const uint64_t n_read = ReadFile(fd_src, offset, buffer_sp->GetBytes(), in GetFile()
236 buffer_sp->GetByteSize(), error); in GetFile()
242 buffer_sp->GetBytes(), n_read, in GetFile()
/external/llvm-project/lldb/source/Expression/
DIRExecutionUnit.cpp151 lldb::DataBufferSP buffer_sp(new DataBufferHeap(func_range.second, 0)); in DisassembleFunction() local
155 process->ReadMemory(func_remote_addr, buffer_sp->GetBytes(), in DisassembleFunction()
156 buffer_sp->GetByteSize(), err); in DisassembleFunction()
186 DataExtractor extractor(buffer_sp, process->GetByteOrder(), in DisassembleFunction()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/
Drecording_tpu_driver.cc499 tensorflow::StringPiece buffer_sp(buffer.data(), buffer.size()); in PopulateAndSaveEntry() local
500 auto data_status = log_file_->Append(buffer_sp); in PopulateAndSaveEntry()
/external/llvm-project/lldb/source/Target/
DPlatform.cpp1252 lldb::DataBufferSP buffer_sp(new DataBufferHeap(1024 * 16, 0)); in PutFile() local
1255 size_t bytes_read = buffer_sp->GetByteSize(); in PutFile()
1256 error = source_file.get()->Read(buffer_sp->GetBytes(), bytes_read); in PutFile()
1261 WriteFile(dest_file, offset, buffer_sp->GetBytes(), bytes_read, error); in PutFile()
/external/llvm-project/lldb/source/Plugins/ObjectFile/PECOFF/
DObjectFilePECOFF.cpp525 DataBufferSP buffer_sp(data_up.release()); in ReadImageData() local
526 data.SetData(buffer_sp, 0, buffer_sp->GetByteSize()); in ReadImageData()

12