LLDB  mainline
Classes | Macros | Enumerations | Functions | Variables
Platform.cpp File Reference
#include <algorithm>
#include <csignal>
#include <fstream>
#include <memory>
#include <vector>
#include "lldb/Breakpoint/BreakpointIDList.h"
#include "lldb/Breakpoint/BreakpointLocation.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/StreamFile.h"
#include "lldb/Host/FileSystem.h"
#include "lldb/Host/Host.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/OptionValueFileSpec.h"
#include "lldb/Interpreter/OptionValueProperties.h"
#include "lldb/Interpreter/Property.h"
#include "lldb/Symbol/ObjectFile.h"
#include "lldb/Target/ModuleCache.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/UnixSignals.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/StructuredData.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "TargetProperties.inc"
#include "TargetPropertiesEnum.inc"
Include dependency graph for Platform.cpp:

Go to the source code of this file.

Classes

struct  RecurseCopyBaton
 

Macros

#define MAP_PRIVATE   2
 
#define MAP_ANON   0x1000
 
#define LLDB_PROPERTIES_platform
 
#define LLDB_PROPERTIES_platform
 

Enumerations

enum  
 

Functions

static PlatformSP & GetHostPlatformSP ()
 
static std::vector< PlatformSP > & GetPlatformList ()
 
static std::recursive_mutex & GetPlatformListMutex ()
 
static FileSystem::EnumerateDirectoryResult RecurseCopy_Callback (void *baton, llvm::sys::fs::file_type ft, llvm::StringRef path)
 

Variables

static uint32_t g_initialize_count = 0
 
static constexpr OptionDefinition g_rsync_option_table []
 
static constexpr OptionDefinition g_ssh_option_table []
 
static constexpr OptionDefinition g_caching_option_table []
 

Macro Definition Documentation

◆ LLDB_PROPERTIES_platform [1/2]

#define LLDB_PROPERTIES_platform

Definition at line 68 of file Platform.cpp.

◆ LLDB_PROPERTIES_platform [2/2]

#define LLDB_PROPERTIES_platform

Definition at line 68 of file Platform.cpp.

◆ MAP_ANON

#define MAP_ANON   0x1000

Definition at line 46 of file Platform.cpp.

Referenced by lldb_private::Platform::GetMmapArgumentList().

◆ MAP_PRIVATE

#define MAP_PRIVATE   2

Definition at line 45 of file Platform.cpp.

Referenced by lldb_private::Platform::GetMmapArgumentList().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 67 of file Platform.cpp.

Function Documentation

◆ GetHostPlatformSP()

static PlatformSP& GetHostPlatformSP ( )
static

◆ GetPlatformList()

static std::vector<PlatformSP>& GetPlatformList ( )
static

◆ GetPlatformListMutex()

static std::recursive_mutex& GetPlatformListMutex ( )
static

◆ RecurseCopy_Callback()

static FileSystem::EnumerateDirectoryResult RecurseCopy_Callback ( void *  baton,
llvm::sys::fs::file_type  ft,
llvm::StringRef  path 
)
static

Variable Documentation

◆ g_caching_option_table

constexpr OptionDefinition g_caching_option_table[]
static
Initial value:
= {
{LLDB_OPT_SET_ALL, false, "local-cache-dir", 'c',
OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypePath,
"Path in which to store local copies of files."},
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 1380 of file Platform.cpp.

Referenced by lldb_private::OptionGroupPlatformCaching::GetDefinitions().

◆ g_initialize_count

uint32_t g_initialize_count = 0
static

Definition at line 51 of file Platform.cpp.

◆ g_rsync_option_table

constexpr OptionDefinition g_rsync_option_table[]
static
Initial value:
= {
{LLDB_OPT_SET_ALL, false, "rsync", 'r', OptionParser::eNoArgument, nullptr,
{}, 0, eArgTypeNone, "Enable rsync."},
{LLDB_OPT_SET_ALL, false, "rsync-opts", 'R',
OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeCommandName,
"Platform-specific options required for rsync to work."},
{LLDB_OPT_SET_ALL, false, "rsync-prefix", 'P',
OptionParser::eRequiredArgument, nullptr, {}, 0, eArgTypeCommandName,
"Platform-specific rsync prefix put before the remote path."},
{LLDB_OPT_SET_ALL, false, "ignore-remote-hostname", 'i',
OptionParser::eNoArgument, nullptr, {}, 0, eArgTypeNone,
"Do not automatically fill in the remote hostname when composing the "
"rsync command."},
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 1357 of file Platform.cpp.

Referenced by lldb_private::OptionGroupPlatformRSync::GetDefinitions().

◆ g_ssh_option_table

constexpr OptionDefinition g_ssh_option_table[]
static
Initial value:
= {
{LLDB_OPT_SET_ALL, false, "ssh", 's', OptionParser::eNoArgument, nullptr,
{}, 0, eArgTypeNone, "Enable SSH."},
{LLDB_OPT_SET_ALL, false, "ssh-opts", 'S', OptionParser::eRequiredArgument,
nullptr, {}, 0, eArgTypeCommandName,
"Platform-specific options required for SSH to work."},
}
#define LLDB_OPT_SET_ALL
Definition: lldb-defines.h:110

Definition at line 1372 of file Platform.cpp.

Referenced by lldb_private::OptionGroupPlatformSSH::GetDefinitions().