LLDB
mainline
|
#include <HostInfoLinux.h>
Static Public Member Functions | |
static void | Initialize (SharedLibraryDirectoryHelper *helper=nullptr) |
static void | Terminate () |
static llvm::VersionTuple | GetOSVersion () |
static llvm::Optional< std::string > | GetOSBuildString () |
static llvm::StringRef | GetDistributionId () |
static FileSpec | GetProgramFileSpec () |
![]() | |
static size_t | GetPageSize () |
static bool | GetHostname (std::string &s) |
static llvm::Optional< std::string > | GetOSKernelDescription () |
static uint32_t | GetUserID () |
static uint32_t | GetGroupID () |
static uint32_t | GetEffectiveUserID () |
static uint32_t | GetEffectiveGroupID () |
static FileSpec | GetDefaultShell () |
static bool | GetEnvironmentVar (const std::string &var_name, std::string &var) |
static UserIDResolver & | GetUserIDResolver () |
![]() | |
static void | Initialize (SharedLibraryDirectoryHelper *helper=nullptr) |
static void | Terminate () |
static llvm::Triple | GetTargetTriple () |
Gets the host target triple. More... | |
static const ArchSpec & | GetArchitecture (ArchitectureKind arch_kind=eArchKindDefault) |
static llvm::Optional< ArchitectureKind > | ParseArchitectureKind (llvm::StringRef kind) |
static FileSpec | GetShlibDir () |
Returns the directory containing the lldb shared library. More... | |
static FileSpec | GetSupportExeDir () |
Returns the directory containing the support executables (debugserver, ...). More... | |
static FileSpec | GetHeaderDir () |
Returns the directory containing the lldb headers. More... | |
static FileSpec | GetSystemPluginDir () |
Returns the directory containing the system plugins. More... | |
static FileSpec | GetUserPluginDir () |
Returns the directory containing the user plugins. More... | |
static FileSpec | GetProcessTempDir () |
Returns the proces temporary directory. More... | |
static FileSpec | GetGlobalTempDir () |
Returns the global temporary directory. More... | |
static ArchSpec | GetAugmentedArchSpec (llvm::StringRef triple) |
If the triple does not specify the vendor, os, and environment parts, we "augment" these using information from the host and return the resulting ArchSpec object. More... | |
static bool | ComputePathRelativeToLibrary (FileSpec &file_spec, llvm::StringRef dir) |
static FileSpec | GetXcodeContentsDirectory () |
static FileSpec | GetXcodeDeveloperDirectory () |
static llvm::StringRef | GetXcodeSDKPath (XcodeSDK sdk) |
Return the directory containing a specific Xcode SDK. More... | |
static SharedCacheImageInfo | GetSharedCacheImageInfo (llvm::StringRef image_name) |
Return information about module image_name if it is loaded in the current process's address space. More... | |
Friends | |
class | HostInfoBase |
Additional Inherited Members | |
![]() | |
enum | ArchitectureKind { eArchKindDefault, eArchKind32, eArchKind64 } |
using | SharedLibraryDirectoryHelper = void(FileSpec &this_file) |
A helper function for determining the liblldb location. More... | |
Definition at line 21 of file HostInfoLinux.h.
|
staticprotected |
Definition at line 198 of file HostInfoLinux.cpp.
References lldb_private::HostInfoBase::ComputeHostArchitectureSupport(), GetDistributionId(), lldb_private::ArchSpec::GetTriple(), lldb_private::ArchSpec::IsValid(), and lldb_private::ArchSpec::SetDistributionId().
Referenced by lldb_private::HostInfoAndroid::ComputeHostArchitectureSupport().
|
staticprotected |
Definition at line 169 of file HostInfoLinux.cpp.
References lldb_private::HostInfoPosix::ComputeSupportExeDirectory(), lldb_private::FileSystem::Exists(), lldb_private::FileSpec::GetDirectory(), GetProgramFileSpec(), lldb_private::FileSystem::Instance(), lldb_private::FileSpec::IsAbsolute(), lldb_private::ConstString::IsEmpty(), and lldb_private::FileSpec::SetDirectory().
|
staticprotected |
Definition at line 177 of file HostInfoLinux.cpp.
References lldb_private::FileSpec::GetPath(), lldb_private::FileSystem::Instance(), lldb_private::FileSystem::Resolve(), and lldb_private::FileSpec::SetDirectory().
|
staticprotected |
Definition at line 184 of file HostInfoLinux.cpp.
References lldb_private::FileSpec::SetDirectory(), and string().
|
static |
Definition at line 79 of file HostInfoLinux.cpp.
References g_fields, LLDB_LOGF, and string().
Referenced by ComputeHostArchitectureSupport().
|
static |
Definition at line 69 of file HostInfoLinux.cpp.
References string().
|
static |
Definition at line 52 of file HostInfoLinux.cpp.
References g_fields.
|
static |
Definition at line 154 of file HostInfoLinux.cpp.
References PATH_MAX, and lldb_private::FileSpec::SetFile().
Referenced by ComputeSupportExeDirectory().
|
static |
Definition at line 39 of file HostInfoLinux.cpp.
References g_fields, and lldb_private::HostInfoBase::Initialize().
|
static |
Definition at line 45 of file HostInfoLinux.cpp.
References g_fields, and lldb_private::HostInfoBase::Terminate().
|
friend |
Definition at line 22 of file HostInfoLinux.h.