llvm/lldb/source/API/SBPlatform.cpp

//===-- SBPlatform.cpp ----------------------------------------------------===//
//
// 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 "lldb/API/SBPlatform.h"
#include "lldb/API/SBDebugger.h"
#include "lldb/API/SBEnvironment.h"
#include "lldb/API/SBError.h"
#include "lldb/API/SBFileSpec.h"
#include "lldb/API/SBLaunchInfo.h"
#include "lldb/API/SBModuleSpec.h"
#include "lldb/API/SBPlatform.h"
#include "lldb/API/SBProcessInfoList.h"
#include "lldb/API/SBTarget.h"
#include "lldb/API/SBUnixSignals.h"
#include "lldb/Host/File.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/ArchSpec.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/Instrumentation.h"
#include "lldb/Utility/Status.h"

#include "llvm/Support/FileSystem.h"

#include <functional>

usingnamespacelldb;
usingnamespacelldb_private;

// PlatformConnectOptions
struct PlatformConnectOptions {};

// PlatformShellCommand
struct PlatformShellCommand {};
// SBPlatformConnectOptions
SBPlatformConnectOptions::SBPlatformConnectOptions(const char *url)
    :{}

SBPlatformConnectOptions::SBPlatformConnectOptions(
    const SBPlatformConnectOptions &rhs)
    :{}

SBPlatformConnectOptions::~SBPlatformConnectOptions() {}

SBPlatformConnectOptions &
SBPlatformConnectOptions::operator=(const SBPlatformConnectOptions &rhs) {}

const char *SBPlatformConnectOptions::GetURL() {}

void SBPlatformConnectOptions::SetURL(const char *url) {}

bool SBPlatformConnectOptions::GetRsyncEnabled() {}

void SBPlatformConnectOptions::EnableRsync(
    const char *options, const char *remote_path_prefix,
    bool omit_hostname_from_remote_path) {}

void SBPlatformConnectOptions::DisableRsync() {}

const char *SBPlatformConnectOptions::GetLocalCacheDirectory() {}

void SBPlatformConnectOptions::SetLocalCacheDirectory(const char *path) {}

// SBPlatformShellCommand
SBPlatformShellCommand::SBPlatformShellCommand(const char *shell_interpreter,
                                               const char *shell_command)
    :{}

SBPlatformShellCommand::SBPlatformShellCommand(const char *shell_command)
    :{}

SBPlatformShellCommand::SBPlatformShellCommand(
    const SBPlatformShellCommand &rhs)
    :{}

SBPlatformShellCommand &
SBPlatformShellCommand::operator=(const SBPlatformShellCommand &rhs) {}

SBPlatformShellCommand::~SBPlatformShellCommand() {}

void SBPlatformShellCommand::Clear() {}

const char *SBPlatformShellCommand::GetShell() {}

void SBPlatformShellCommand::SetShell(const char *shell_interpreter) {}

const char *SBPlatformShellCommand::GetCommand() {}

void SBPlatformShellCommand::SetCommand(const char *shell_command) {}

const char *SBPlatformShellCommand::GetWorkingDirectory() {}

void SBPlatformShellCommand::SetWorkingDirectory(const char *path) {}

uint32_t SBPlatformShellCommand::GetTimeoutSeconds() {}

void SBPlatformShellCommand::SetTimeoutSeconds(uint32_t sec) {}

int SBPlatformShellCommand::GetSignal() {}

int SBPlatformShellCommand::GetStatus() {}

const char *SBPlatformShellCommand::GetOutput() {}

// SBPlatform
SBPlatform::SBPlatform() {}

SBPlatform::SBPlatform(const char *platform_name) {}

SBPlatform::SBPlatform(const SBPlatform &rhs) {}

SBPlatform &SBPlatform::operator=(const SBPlatform &rhs) {}

SBPlatform::~SBPlatform() = default;

SBPlatform SBPlatform::GetHostPlatform() {}

bool SBPlatform::IsValid() const {}
operator bool()

void SBPlatform::Clear() {}

const char *SBPlatform::GetName() {}

lldb::PlatformSP SBPlatform::GetSP() const {}

void SBPlatform::SetSP(const lldb::PlatformSP &platform_sp) {}

const char *SBPlatform::GetWorkingDirectory() {}

bool SBPlatform::SetWorkingDirectory(const char *path) {}

SBError SBPlatform::ConnectRemote(SBPlatformConnectOptions &connect_options) {}

void SBPlatform::DisconnectRemote() {}

bool SBPlatform::IsConnected() {}

const char *SBPlatform::GetTriple() {}

const char *SBPlatform::GetOSBuild() {}

const char *SBPlatform::GetOSDescription() {}

const char *SBPlatform::GetHostname() {}

uint32_t SBPlatform::GetOSMajorVersion() {}

uint32_t SBPlatform::GetOSMinorVersion() {}

uint32_t SBPlatform::GetOSUpdateVersion() {}

void SBPlatform::SetSDKRoot(const char *sysroot) {}

SBError SBPlatform::Get(SBFileSpec &src, SBFileSpec &dst) {}

SBError SBPlatform::Put(SBFileSpec &src, SBFileSpec &dst) {}

SBError SBPlatform::Install(SBFileSpec &src, SBFileSpec &dst) {}

SBError SBPlatform::Run(SBPlatformShellCommand &shell_command) {}

SBError SBPlatform::Launch(SBLaunchInfo &launch_info) {}

SBProcess SBPlatform::Attach(SBAttachInfo &attach_info,
                             const SBDebugger &debugger, SBTarget &target,
                             SBError &error) {}

SBProcessInfoList SBPlatform::GetAllProcesses(SBError &error) {}

SBError SBPlatform::Kill(const lldb::pid_t pid) {}

SBError SBPlatform::ExecuteConnected(
    const std::function<Status(const lldb::PlatformSP &)> &func) {}

SBError SBPlatform::MakeDirectory(const char *path, uint32_t file_permissions) {}

uint32_t SBPlatform::GetFilePermissions(const char *path) {}

SBError SBPlatform::SetFilePermissions(const char *path,
                                       uint32_t file_permissions) {}

SBUnixSignals SBPlatform::GetUnixSignals() const {}

SBEnvironment SBPlatform::GetEnvironment() {}

SBError SBPlatform::SetLocateModuleCallback(
    lldb::SBPlatformLocateModuleCallback callback, void *callback_baton) {}