Lines Matching refs:bytes_read
375 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
377 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
378 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
381 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
432 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
434 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
439 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
444 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
628 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
629 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
634 llvm::makeMutableArrayRef(static_cast<uint8_t *>(buf), bytes_read); in ReadMemoryWithoutTrap()
639 if (bp_addr + saved_opcodes.size() < addr || addr + bytes_read <= bp_addr) in ReadMemoryWithoutTrap()
660 size_t bytes_read = 0; in ReadCStringFromMemory() local
673 bytes_to_read, bytes_read); in ReadCStringFromMemory()
675 if (bytes_read == 0) in ReadCStringFromMemory()
678 void *str_end = std::memchr(curr_buffer, '\0', bytes_read); in ReadCStringFromMemory()
686 total_bytes_read += bytes_read; in ReadCStringFromMemory()
687 curr_buffer += bytes_read; in ReadCStringFromMemory()
688 curr_addr += bytes_read; in ReadCStringFromMemory()
689 bytes_left -= bytes_read; in ReadCStringFromMemory()