| /llvm-project-15.0.7/lldb/tools/lldb-vscode/ |
| H A D | IOStream.cpp | 98 int bytes_read = 0; in read_full() local 100 bytes_read = ::recv(descriptor.m_socket, ptr, length, 0); in read_full() 102 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full() 104 if (bytes_read == 0) { in read_full() 109 if (bytes_read < 0) { in read_full() 127 assert(bytes_read >= 0 && (size_t)bytes_read <= length); in read_full() 128 ptr += bytes_read; in read_full() 129 length -= bytes_read; in read_full()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/POSIX/ |
| H A D | NativeProcessELF.cpp | 69 size_t bytes_read; in GetELFImageInfoAddress() local 71 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress() 94 size_t bytes_read; in GetELFImageInfoAddress() local 96 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress() 119 size_t bytes_read; in ReadSVR4LibraryInfo() local 121 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo() 127 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo() 150 size_t bytes_read; in GetLoadedSVR4Libraries() local 152 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries() 161 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
|
| /llvm-project-15.0.7/lldb/unittests/Host/ |
| H A D | NativeProcessProtocolTest.cpp | 110 size_t bytes_read; in TEST() local 112 0x0, &string[0], sizeof(string), bytes_read), in TEST() 114 EXPECT_EQ(bytes_read, 6UL); in TEST() 126 size_t bytes_read; in TEST() local 128 0x0, &string[0], sizeof(string), bytes_read), in TEST() 130 EXPECT_EQ(bytes_read, 3UL); in TEST() 143 size_t bytes_read; in TEST() local 146 bytes_read), in TEST() 148 EXPECT_EQ(bytes_read, 6UL); in TEST()
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | NativeProcessProtocol.cpp | 375 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local 432 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local 439 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint() 444 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 660 size_t bytes_read = 0; in ReadCStringFromMemory() local 673 bytes_to_read, bytes_read); in ReadCStringFromMemory() 675 if (bytes_read == 0) in ReadCStringFromMemory() 686 total_bytes_read += bytes_read; in ReadCStringFromMemory() 687 curr_buffer += bytes_read; in ReadCStringFromMemory() 688 curr_addr += bytes_read; in ReadCStringFromMemory() [all …]
|
| H A D | PipeBase.cpp | 21 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) { in Read() argument 23 bytes_read); in Read()
|
| H A D | File.cpp | 518 ssize_t bytes_read = -1; in Read() local 520 bytes_read = llvm::sys::RetryAfterSignal(-1, ::read, m_descriptor, buf, num_bytes); in Read() 521 if (bytes_read == -1) { in Read() 525 num_bytes = bytes_read; in Read() 527 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Read() 529 if (bytes_read == 0) { in Read() 536 num_bytes = bytes_read; in Read() 642 ssize_t bytes_read = in Read() local 644 if (bytes_read < 0) { in Read() 648 offset += bytes_read; in Read() [all …]
|
| H A D | FileCache.cpp | 109 size_t bytes_read = dst_len; in ReadFile() local 110 error = file_up->Read(dst, bytes_read); in ReadFile() 113 return bytes_read; in ReadFile()
|
| H A D | NativeRegisterContext.cpp | 360 size_t bytes_read; in ReadRegisterValueFromMemory() local 361 error = process.ReadMemory(src_addr, src, src_len, bytes_read); in ReadRegisterValueFromMemory() 366 if (bytes_read != src_len) { in ReadRegisterValueFromMemory() 369 static_cast<uint64_t>(bytes_read), in ReadRegisterValueFromMemory()
|
| /llvm-project-15.0.7/lldb/source/Host/windows/ |
| H A D | ConnectionGenericFileWindows.cpp | 169 DWORD bytes_read = 0; in Read() local 211 if (!::GetOverlappedResult(m_file, &m_overlapped, &bytes_read, FALSE)) { in Read() 219 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read() 221 return_info.Set(bytes_read, eConnectionStatusError, result_error); in Read() 222 } else if (bytes_read == 0) in Read() 223 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read() 225 return_info.Set(bytes_read, eConnectionStatusSuccess, 0); in Read()
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBFile.cpp | 57 SBError SBFile::Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read) { in Read() argument 58 LLDB_INSTRUMENT_VA(this, buf, num_bytes, bytes_read); in Read() 63 *bytes_read = 0; in Read() 67 *bytes_read = num_bytes; in Read()
|
| H A D | SBCommunication.cpp | 107 size_t bytes_read = 0; in Read() local 112 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read() 116 return bytes_read; in Read()
|
| H A D | SBProcess.cpp | 263 size_t bytes_read = 0; in GetSTDOUT() local 267 bytes_read = process_sp->GetSTDOUT(dst, dst_len, error); in GetSTDOUT() 270 return bytes_read; in GetSTDOUT() 276 size_t bytes_read = 0; in GetSTDERR() local 283 return bytes_read; in GetSTDERR() 289 size_t bytes_read = 0; in GetAsyncProfileData() local 296 return bytes_read; in GetAsyncProfileData() 805 size_t bytes_read = 0; in ReadMemory() local 823 return bytes_read; in ReadMemory() 830 size_t bytes_read = 0; in ReadCStringFromMemory() local [all …]
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/ |
| H A D | TestLinuxCoreThreads.py | 50 bytes_read = process.ReadMemory(0x8048000, 4, mem_err) 52 bytes_read = process.ReadMemory(0x400000, 4, mem_err) 53 self.assertEqual(bytes_read, None)
|
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 248 size_t &bytes_read) { in ReadWithTimeout() argument 249 bytes_read = 0; in ReadWithTimeout() 264 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout() 266 bytes_read += result; in ReadWithTimeout() 267 if (bytes_read == size || result == 0) in ReadWithTimeout()
|
| H A D | ConnectionFileDescriptorPosix.cpp | 279 size_t bytes_read = dst_len; in Read() local 280 error = m_io_sp->Read(dst, bytes_read); in Read() 289 static_cast<uint64_t>(bytes_read), error.AsCString()); in Read() 292 if (bytes_read == 0) { in Read() 354 return bytes_read; in Read() 512 ssize_t bytes_read = in BytesAvailable() local 514 assert(bytes_read == 1); in BytesAvailable() 515 (void)bytes_read; in BytesAvailable()
|
| /llvm-project-15.0.7/compiler-rt/lib/dfsan/ |
| H A D | dfsan_custom.cpp | 145 size_t bytes_read; in __dfsw_strchr() local 154 size_t bytes_read; in __dfso_strchr() local 216 *bytes_read = n; in dfsan_memcmp_bcmp() 239 size_t bytes_read; in dfsan_memcmp_bcmp_label() local 248 size_t bytes_read; in dfsan_memcmp_bcmp_origin() local 329 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local 341 size_t bytes_read; in __dfso_strcmp() local 368 size_t bytes_read; in __dfsw_strcasecmp() local 378 size_t bytes_read; in __dfso_strcasecmp() local 408 size_t bytes_read; in DECLARE_WEAK_INTERCEPTOR_HOOK() local [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/mach-core/ |
| H A D | ProcessMachCore.cpp | 627 size_t bytes_read = 0; in DoReadMemory() local 646 while (bytes_read < size) { in DoReadMemory() 647 const addr_t curr_addr = addr + bytes_read; in DoReadMemory() 655 std::min(size - bytes_read, (size_t)bytes_left); in DoReadMemory() 658 (char *)buf + bytes_read); in DoReadMemory() 661 bytes_read += curr_bytes_read; in DoReadMemory() 664 if (bytes_read == 0) in DoReadMemory() 672 return bytes_read; in DoReadMemory()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/ |
| H A D | NativeProcessSoftwareSingleStep.cpp | 41 size_t bytes_read; in ReadMemoryCallback() local 42 emulator_baton->m_process.ReadMemory(addr, dst, length, bytes_read); in ReadMemoryCallback() 43 return bytes_read; in ReadMemoryCallback()
|
| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | PipeBase.h | 62 size_t &bytes_read) = 0; 63 Status Read(void *buf, size_t size, size_t &bytes_read);
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_linux_test.cpp | 264 uptr bytes_read; in TEST() local 265 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST() 266 if (!bytes_read) { in TEST() 269 ptr += bytes_read; in TEST()
|
| H A D | sanitizer_libc_test.cpp | 163 uptr bytes_read = 0; in TEST() local 164 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST() 165 EXPECT_EQ(len1, bytes_read); in TEST() 169 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST() 170 EXPECT_EQ(len2, bytes_read); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux_libcdep.cpp | 796 uptr bytes_read = buffer.size(); in GetNumberOfCPUs() 799 struct linux_dirent *entry = (struct linux_dirent *)&buffer[bytes_read]; in GetNumberOfCPUs() 801 if ((u8 *)entry >= &buffer[bytes_read]) { in GetNumberOfCPUs() 802 bytes_read = internal_getdents(fd, (struct linux_dirent *)buffer.data(), in GetNumberOfCPUs() 804 if (internal_iserror(bytes_read) || !bytes_read) in GetNumberOfCPUs() 809 if (d_type >= &buffer[bytes_read] || in GetNumberOfCPUs() 810 (u8 *)&entry->d_name[3] >= &buffer[bytes_read]) in GetNumberOfCPUs()
|
| H A D | sanitizer_win.cpp | 612 uptr bytes_read; in GetPreferredBase() local 613 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase() 614 bytes_read != sizeof(dos_header)) in GetPreferredBase() 629 if (!ReadFromFile(fd, buf, buf_size, &bytes_read) || bytes_read != buf_size) in GetPreferredBase() 764 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() argument 775 if (bytes_read) in ReadFromFile() 776 *bytes_read = num_read_long; in ReadFromFile()
|
| /llvm-project-15.0.7/lldb/source/Commands/ |
| H A D | CommandObjectMemory.cpp | 646 size_t bytes_read = 0; in DoExecute() local 658 bytes_read = *size * m_format_options.GetCountValue().GetCurrentValue(); in DoExecute() 674 bytes_read = target->ReadMemory(address, data_sp->GetBytes(), in DoExecute() 676 if (bytes_read == 0) { in DoExecute() 687 if (bytes_read < total_byte_size) in DoExecute() 691 (uint64_t)bytes_read, (uint64_t)total_byte_size, addr); in DoExecute() 742 bytes_read += read; in DoExecute() 753 m_next_addr = addr + bytes_read; in DoExecute() 754 m_prev_byte_size = bytes_read; in DoExecute() 783 outfile_stream_up->Write(data_sp->GetBytes(), bytes_read); in DoExecute() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | DataExtractor.cpp | 205 unsigned bytes_read; in getLEB128() local 207 Decoder(Bytes.data() + *OffsetPtr, &bytes_read, Bytes.end(), &error); in getLEB128() 216 *OffsetPtr += bytes_read; in getLEB128()
|