================
@@ -59,7 +64,10 @@ Error
OutputRedirector::RedirectTo(std::function<void(StringRef)> callback) {
while (!m_stopped) {
ssize_t bytes_count = ::read(read_fd, &buffer, sizeof(buffer));
// EOF detected.
- if (bytes_count == 0)
+ if (bytes_count == 0 ||
----------------
ashgti wrote:
I used the second suggestion and added some tests to try to validate we don't
incorrectly consume any null bytes produced by the debuggee.
https://github.com/llvm/llvm-project/pull/126833
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits