llvm/lldb/tools/lldb-dap/RunInTerminal.cpp

//===-- RunInTerminal.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
//
//===----------------------------------------------------------------------===//

#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)
    :{}

// Can't use \a std::future<llvm::Error> because it doesn't compile on Windows
std::future<lldb::SBError>
RunInTerminalDebugAdapterCommChannel::NotifyDidAttach() {}

Expected<lldb::pid_t> RunInTerminalDebugAdapterCommChannel::GetLauncherPid() {}

std::string RunInTerminalDebugAdapterCommChannel::GetLauncherError() {}

Expected<std::shared_ptr<FifoFile>> CreateRunInTerminalCommFile() {}

} // namespace lldb_dap