/llvm-project/lldb/unittests/Target/ |
H A D | MemoryTest.cpp | 108 size_t bytes_read = 0; in TEST_F() local 112 bytes_read = mem_cache.Read(0x1000, data_sp->GetBytes(), in TEST_F() 114 ASSERT_TRUE(bytes_read == 0); in TEST_F() 118 bytes_read = mem_cache.Read(0x1000, data_sp->GetBytes(), in TEST_F() 120 ASSERT_TRUE(bytes_read == 0); in TEST_F() 125 bytes_read = mem_cache.Read(0x1000, data_sp->GetBytes(), in TEST_F() 127 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() 132 bytes_read = mem_cache.Read(0x1000, data_sp->GetBytes(), in TEST_F() 134 ASSERT_TRUE(bytes_read == data_sp->GetByteSize()); in TEST_F() 142 bytes_read = mem_cache.Read(0x2000, data_sp->GetBytes(), in TEST_F() [all …]
|
/llvm-project/lldb/tools/lldb-dap/ |
H A D | IOStream.cpp | 97 int bytes_read = 0; in read_full() 99 bytes_read = ::recv(descriptor.m_socket, ptr, length, 0); in read_full() 101 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full() 103 if (bytes_read == 0) { in read_full() 108 if (bytes_read < 0) { in read_full() 126 assert(bytes_read >= 0 && (size_t)bytes_read <= length); in read_full() 127 ptr += bytes_read; in read_full() 128 length -= bytes_read; in read_full() 98 int bytes_read = 0; read_full() local
|
/llvm-project/lldb/source/Plugins/Process/POSIX/ |
H A D | NativeProcessELF.cpp | 70 size_t bytes_read; in GetELFImageInfoAddress() local 72 sizeof(phdr_entry), bytes_read); in GetELFImageInfoAddress() 95 size_t bytes_read; in GetELFImageInfoAddress() local 97 &dynamic_entry, sizeof(dynamic_entry), bytes_read); in GetELFImageInfoAddress() 120 size_t bytes_read; in ReadSVR4LibraryInfo() local 122 ReadMemory(link_map_addr, &link_map, sizeof(link_map), bytes_read); in ReadSVR4LibraryInfo() 128 link_map.l_name, &name_buffer[0], sizeof(name_buffer), bytes_read); in ReadSVR4LibraryInfo() 151 size_t bytes_read; in GetLoadedSVR4Libraries() local 153 ReadMemory(info_address, &address, GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries() 162 GetAddressByteSize(), bytes_read); in GetLoadedSVR4Libraries()
|
/llvm-project/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/lldb/source/Host/common/ |
H A D | NativeProcessProtocol.cpp | 377 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() 379 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint() 380 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint() 383 curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint() 436 size_t bytes_read = 0; in EnableSoftwareBreakpoint() 438 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 443 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint() 448 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint() 654 size_t &bytes_read) { in ReadMemoryWithoutTrap() 655 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap() 376 size_t bytes_read = 0; RemoveSoftwareBreakpoint() local 433 size_t bytes_read = 0; EnableSoftwareBreakpoint() local 651 ReadMemoryWithoutTrap(lldb::addr_t addr,void * buf,size_t size,size_t & bytes_read) ReadMemoryWithoutTrap() argument 682 size_t bytes_read = 0; ReadCStringFromMemory() local [all...] |
H A D | File.cpp | 551 ssize_t bytes_read = -1; in Read() local 553 bytes_read = in Read() 555 if (bytes_read == -1) { in Read() 559 num_bytes = bytes_read; in Read() 564 bytes_read = ::fread(buf, 1, num_bytes, m_stream); in Read() 566 if (bytes_read == 0) { in Read() 573 num_bytes = bytes_read; in Read() 682 ssize_t bytes_read = in Read() local 684 if (bytes_read < 0) { in Read() 688 offset += bytes_read; in Read() [all...] |
H A D | PipeBase.cpp | 26 Status PipeBase::Read(void *buf, size_t size, size_t &bytes_read) { 28 bytes_read); 21 Read(void * buf,size_t size,size_t & bytes_read) Read() argument
|
H A D | FileCache.cpp | 112 size_t bytes_read = dst_len; in ReadFile() 113 error = file_up->Read(dst, bytes_read); in ReadFile() 116 return bytes_read; 109 size_t bytes_read = dst_len; ReadFile() local
|
H A D | NativeRegisterContext.cpp | 349 size_t bytes_read; in ReadRegisterValueFromMemory() local 350 error = process.ReadMemory(src_addr, src.data(), src_len, bytes_read); in ReadRegisterValueFromMemory() 355 if (bytes_read != src_len) { in ReadRegisterValueFromMemory() 359 static_cast<uint64_t>(bytes_read), static_cast<uint64_t>(src_len)); in ReadRegisterValueFromMemory()
|
/llvm-project/libc/src/sys/auxv/linux/ |
H A D | getauxval.cpp | 138 ssize_t bytes_read = read(fd_guard.get(), buf, available_size); in initialize_auxv_once() 139 if (bytes_read <= 0) { in initialize_auxv_once() 144 if (bytes_read == -1) in initialize_auxv_once() 148 buf += bytes_read; in initialize_auxv_once() 149 available_size -= bytes_read; in initialize_auxv_once() 137 ssize_t bytes_read = read(fd_guard.get(), buf, available_size); initialize_auxv_once() local
|
/llvm-project/lldb/source/Host/windows/ |
H A D | ConnectionGenericFileWindows.cpp | 169 DWORD bytes_read = 0; in Read() local 210 if (!::GetOverlappedResult(m_file, &m_overlapped, &bytes_read, FALSE)) { in Read() 218 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read() 220 return_info.Set(bytes_read, eConnectionStatusError, result_error); in Read() 221 } else if (bytes_read == 0) in Read() 222 return_info.Set(bytes_read, eConnectionStatusEndOfFile, 0); in Read() 224 return_info.Set(bytes_read, eConnectionStatusSuccess, 0); in Read()
|
/llvm-project/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() 66 *bytes_read = num_bytes; in Read()
|
H A D | SBCommunication.cpp | 108 size_t bytes_read = 0; in Read() local 113 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read() 117 return bytes_read; in Read()
|
H A D | SBProcess.cpp | 268 size_t bytes_read = 0; in GetSTDOUT() 272 bytes_read = process_sp->GetSTDOUT(dst, dst_len, error); in GetSTDOUT() 275 return bytes_read; 281 size_t bytes_read = 0; in GetSTDERR() 285 bytes_read = process_sp->GetSTDERR(dst, dst_len, error); in GetSTDERR() 288 return bytes_read; 294 size_t bytes_read = 0; in GetAsyncProfileData() 298 bytes_read = process_sp->GetAsyncProfileData(dst, dst_len, error); in GetAsyncProfileData() 301 return bytes_read; 873 size_t bytes_read in ReadMemory() 266 size_t bytes_read = 0; GetSTDOUT() local 279 size_t bytes_read = 0; GetSTDERR() local 292 size_t bytes_read = 0; GetAsyncProfileData() local 871 size_t bytes_read = 0; ReadMemory() local 895 size_t bytes_read = 0; ReadCStringFromMemory() local [all...] |
/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cpp | 126 static char *dfsan_strchr_with_label(const char *s, int c, size_t *bytes_read, in dfsan_strchr_with_label() 134 *bytes_read = i + 1; in dfsan_strchr_with_label() 142 *ret_label = dfsan_union(dfsan_read_label(s, *bytes_read), in dfsan_strchr_with_label() 151 size_t bytes_read; in __dfsw_strchr() 152 return dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, in __dfsw_strchr() 160 size_t bytes_read; in __dfso_strchr() 162 dfsan_strchr_with_label(s, c, &bytes_read, s_label, c_label, ret_label); in __dfso_strchr() 166 dfsan_origin o = dfsan_read_origin_of_first_taint(s, bytes_read); in __dfso_strchr() 265 size_t *bytes_read) { in dfsan_memcmp_bcmp() 269 *bytes_read in dfsan_memcmp_bcmp() 124 dfsan_strchr_with_label(const char * s,int c,size_t * bytes_read,dfsan_label s_label,dfsan_label c_label,dfsan_label * ret_label) dfsan_strchr_with_label() argument 149 size_t bytes_read; __dfsw_strchr() local 158 size_t bytes_read; __dfso_strchr() local 263 dfsan_memcmp_bcmp(const void * s1,const void * s2,size_t n,size_t * bytes_read) dfsan_memcmp_bcmp() argument 294 size_t bytes_read; dfsan_memcmp_bcmp_label() local 303 size_t bytes_read; dfsan_memcmp_bcmp_origin() local 360 dfsan_strncmp(const char * s1,const char * s2,size_t n,size_t * bytes_read) dfsan_strncmp() argument 384 size_t bytes_read; DECLARE_WEAK_INTERCEPTOR_HOOK() local 396 size_t bytes_read; __dfso_strcmp() local 405 dfsan_strncasecmp(const char * s1,const char * s2,size_t n,size_t * bytes_read) dfsan_strncasecmp() argument 423 size_t bytes_read; __dfsw_strcasecmp() local 433 size_t bytes_read; __dfso_strcasecmp() local 463 size_t bytes_read; DECLARE_WEAK_INTERCEPTOR_HOOK() local 483 size_t bytes_read; __dfso_strncmp() local 497 size_t bytes_read; __dfsw_strncasecmp() local 513 size_t bytes_read; __dfso_strncasecmp() local [all...] |
/llvm-project/lldb/source/Host/posix/ |
H A D | PipePosix.cpp | 305 size_t &bytes_read) { in ReadWithTimeout() argument 307 bytes_read = 0; in ReadWithTimeout() 322 ::read(fd, static_cast<char *>(buf) + bytes_read, size - bytes_read); in ReadWithTimeout() 324 bytes_read += result; in ReadWithTimeout() 325 if (bytes_read == size || result == 0) in ReadWithTimeout()
|
H A D | ConnectionFileDescriptorPosix.cpp | 273 size_t bytes_read = dst_len; in Read() 274 error = m_io_sp->Read(dst, bytes_read); in Read() 283 static_cast<uint64_t>(bytes_read), error.AsCString()); in Read() 286 if (bytes_read == 0) { in Read() 348 return bytes_read; in Read() 506 ssize_t bytes_read = in BytesAvailable() 508 assert(bytes_read == 1); in BytesAvailable() 509 UNUSED_IF_ASSERT_DISABLED(bytes_read); in BytesAvailable() 277 size_t bytes_read = dst_len; Read() local 510 ssize_t bytes_read = BytesAvailable() local
|
/llvm-project/lldb/test/API/functionalities/postmortem/elf-core/thread_crash/ |
H A D | TestLinuxCoreThreads.py | 87 bytes_read = process.ReadMemory(0x8048000, 4, mem_err) 89 bytes_read = process.ReadMemory(0x400000, 4, mem_err) 90 self.assertEqual(bytes_read, None)
|
/llvm-project/lldb/source/Plugins/Process/mach-core/ |
H A D | ProcessMachCore.cpp | 666 size_t bytes_read = 0; in DoReadMemory() 685 while (bytes_read < size) { in DoReadMemory() 686 const addr_t curr_addr = addr + bytes_read; in DoReadMemory() 694 std::min(size - bytes_read, (size_t)bytes_left); in DoReadMemory() 697 (char *)buf + bytes_read); in DoReadMemory() 700 bytes_read += curr_bytes_read; in DoReadMemory() 703 if (bytes_read == 0) in DoReadMemory() 711 return bytes_read; in DoGetMemoryRegionInfo() 661 size_t bytes_read = 0; DoReadMemory() local
|
/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_linux_test.cpp | 266 uptr bytes_read; in TEST() 267 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST() 268 if (!bytes_read) { in TEST() 271 ptr += bytes_read; in TEST() 264 uptr bytes_read; TEST() local
|
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/lldb/include/lldb/Host/ |
H A D | PipeBase.h | 65 size_t &bytes_read) = 0; 66 Status Read(void *buf, size_t size, size_t &bytes_read);
|
/llvm-project/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/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux_libcdep.cpp |
|
/llvm-project/lldb/source/Plugins/ObjectFile/Minidump/ |
H A D | MinidumpFileBuilder.cpp | 1006 const size_t bytes_read = in AddMemoryList_32() 1008 if (error.Fail() || bytes_read == 0) { in AddMemoryList_32() 1010 bytes_read, error.AsCString()); in AddMemoryList_32() 1013 } else if (bytes_read != size) { in AddMemoryList_32() 1023 static_cast<llvm::support::ulittle32_t>(bytes_read); in AddMemoryList_32() 1031 error = AddData(data_up->GetBytes(), bytes_read); in AddMemoryList_32() 1123 const size_t bytes_read = in AddMemoryList_64() 1127 bytes_read, error.AsCString()); in AddMemoryList_64() 1132 if (bytes_read != size) { in AddMemoryList_64() 1137 descriptors[region_index].DataSize = bytes_read; in AddMemoryList_64() 989 const size_t bytes_read = AddMemoryList_32() local 1101 const size_t bytes_read = AddMemoryList_64() local [all...] |