#include "RunInTerminal.h"
#if !defined(_WIN32)
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#endif
#include <chrono>
#include <fstream>
#include <future>
#include <thread>
#include "llvm/Support/FileSystem.h"
#include "lldb/lldb-defines.h"
usingnamespacellvm;
namespace lldb_dap {
const RunInTerminalMessagePid *RunInTerminalMessage::GetAsPidMessage() const { … }
const RunInTerminalMessageError *
RunInTerminalMessage::GetAsErrorMessage() const { … }
RunInTerminalMessage::RunInTerminalMessage(RunInTerminalMessageKind kind)
: … { … }
RunInTerminalMessagePid::RunInTerminalMessagePid(lldb::pid_t pid)
: … { … }
json::Value RunInTerminalMessagePid::ToJSON() const { … }
RunInTerminalMessageError::RunInTerminalMessageError(StringRef error)
: … { … }
json::Value RunInTerminalMessageError::ToJSON() const { … }
RunInTerminalMessageDidAttach::RunInTerminalMessageDidAttach()
: … { … }
json::Value RunInTerminalMessageDidAttach::ToJSON() const { … }
static Expected<RunInTerminalMessageUP>
ParseJSONMessage(const json::Value &json) { … }
static Expected<RunInTerminalMessageUP>
GetNextMessage(FifoFileIO &io, std::chrono::milliseconds timeout) { … }
static Error ToError(const RunInTerminalMessage &message) { … }
RunInTerminalLauncherCommChannel::RunInTerminalLauncherCommChannel(
StringRef comm_file)
: … { … }
Error RunInTerminalLauncherCommChannel::WaitUntilDebugAdaptorAttaches(
std::chrono::milliseconds timeout) { … }
Error RunInTerminalLauncherCommChannel::NotifyPid() { … }
void RunInTerminalLauncherCommChannel::NotifyError(StringRef error) { … }
RunInTerminalDebugAdapterCommChannel::RunInTerminalDebugAdapterCommChannel(
StringRef comm_file)
: … { … }
std::future<lldb::SBError>
RunInTerminalDebugAdapterCommChannel::NotifyDidAttach() { … }
Expected<lldb::pid_t> RunInTerminalDebugAdapterCommChannel::GetLauncherPid() { … }
std::string RunInTerminalDebugAdapterCommChannel::GetLauncherError() { … }
Expected<std::shared_ptr<FifoFile>> CreateRunInTerminalCommFile() { … }
}