//===-- OutputRedirector.cpp -----------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===/ #if defined(_WIN32) #include <fcntl.h> #include <io.h> #else #include <unistd.h> #endif #include "DAP.h" #include "OutputRedirector.h" #include "llvm/ADT/StringRef.h" usingnamespacellvm; namespace lldb_dap { Error RedirectFd(int fd, std::function<void(llvm::StringRef)> callback) { … } } // namespace lldb_dap