Lines Matching refs:bytes_read
376 size_t bytes_read = 0; in RemoveSoftwareBreakpoint() local
378 ReadMemory(addr, curr_break_op.data(), curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
379 if (error.Fail() || bytes_read < curr_break_op.size()) { in RemoveSoftwareBreakpoint()
382 addr, curr_break_op.size(), bytes_read); in RemoveSoftwareBreakpoint()
433 size_t bytes_read = 0; in EnableSoftwareBreakpoint() local
435 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
440 if (bytes_read != saved_opcode_bytes.size()) { in EnableSoftwareBreakpoint()
445 saved_opcode_bytes.size(), bytes_read); in EnableSoftwareBreakpoint()
651 size_t &bytes_read) { in ReadMemoryWithoutTrap() argument
652 Status error = ReadMemory(addr, buf, size, bytes_read); in ReadMemoryWithoutTrap()
656 llvm::MutableArrayRef data(static_cast<uint8_t *>(buf), bytes_read); in ReadMemoryWithoutTrap()
661 if (bp_addr + saved_opcodes.size() < addr || addr + bytes_read <= bp_addr) in ReadMemoryWithoutTrap()
682 size_t bytes_read = 0; in ReadCStringFromMemory() local
695 bytes_to_read, bytes_read); in ReadCStringFromMemory()
697 if (bytes_read == 0) in ReadCStringFromMemory()
700 void *str_end = std::memchr(curr_buffer, '\0', bytes_read); in ReadCStringFromMemory()
708 total_bytes_read += bytes_read; in ReadCStringFromMemory()
709 curr_buffer += bytes_read; in ReadCStringFromMemory()
710 curr_addr += bytes_read; in ReadCStringFromMemory()
711 bytes_left -= bytes_read; in ReadCStringFromMemory()