clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed.
This change removes support for using a FILE* instead of a file descriptor. This needs to be fixed. The old Read function used to do this: ssize_t bytes_read = -1; if (DescriptorIsValid()) { do { bytes_read = ::read(m_descriptor, buf, num_bytes); } while (bytes_read < 0 && errno == EINTR); if (bytes_read == -1) { error.SetErrorToErrno(); num_bytes = 0; } else num_bytes = bytes_read; } else if (StreamIsValid()) { bytes_read = ::fread(buf, 1, num_bytes, m_stream); if (bytes_read == 0) { if (::feof(m_stream)) error.SetErrorString("feof"); else if (::ferror(m_stream)) error.SetErrorString("ferror"); num_bytes = 0; } else num_bytes = bytes_read; } else { num_bytes = 0; error.SetErrorString("invalid file handle"); } return error; Note the "else if (StreamIsValid()) {" section. https://reviews.llvm.org/D28305 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits