Lines Matching refs:bytes_read
362 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
364 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
365 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
368 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
419 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
421 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
426 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
431 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
615 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
616 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
621 llvm::makeMutableArrayRef(static_cast<uint8_t *>(buf), bytes_read); in ReadMemoryWithoutTrap()
626 if (bp_addr + saved_opcodes.size() < addr || addr + bytes_read <= bp_addr) in ReadMemoryWithoutTrap()
647 size_t bytes_read = 0; in ReadCStringFromMemory() local
660 bytes_to_read, bytes_read); in ReadCStringFromMemory()
662 if (bytes_read == 0) in ReadCStringFromMemory()
665 void *str_end = std::memchr(curr_buffer, '\0', bytes_read); in ReadCStringFromMemory()
673 total_bytes_read += bytes_read; in ReadCStringFromMemory()
674 curr_buffer += bytes_read; in ReadCStringFromMemory()
675 curr_addr += bytes_read; in ReadCStringFromMemory()
676 bytes_left -= bytes_read; in ReadCStringFromMemory()