LLDB  mainline
Static Public Member Functions | Static Protected Member Functions | Friends | List of all members
lldb_private::HostInfoMacOSX Class Reference

#include <HostInfoMacOSX.h>

Inheritance diagram for lldb_private::HostInfoMacOSX:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::HostInfoMacOSX:
Collaboration graph
[legend]

Static Public Member Functions

static llvm::VersionTuple GetOSVersion ()
 
static llvm::VersionTuple GetMacCatalystVersion ()
 
static bool GetOSBuildString (std::string &s)
 
static bool GetOSKernelDescription (std::string &s)
 
static FileSpec GetProgramFileSpec ()
 
static FileSpec GetXcodeContentsDirectory ()
 
static FileSpec GetXcodeDeveloperDirectory ()
 
static llvm::StringRef GetXcodeSDKPath (XcodeSDK sdk)
 Query xcrun to find an Xcode SDK directory. More...
 
static SharedCacheImageInfo GetSharedCacheImageInfo (llvm::StringRef image_name)
 Shared cache utilities. More...
 
- Static Public Member Functions inherited from lldb_private::HostInfoPosix
static size_t GetPageSize ()
 
static bool GetHostname (std::string &s)
 
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 UserIDResolverGetUserIDResolver ()
 
- Static Public Member Functions inherited from lldb_private::HostInfoBase
static void Initialize (SharedLibraryDirectoryHelper *helper=nullptr)
 
static void Terminate ()
 
static llvm::Triple GetTargetTriple ()
 Gets the host target triple. More...
 
static const ArchSpecGetArchitecture (ArchitectureKind arch_kind=eArchKindDefault)
 
static llvm::Optional< ArchitectureKindParseArchitectureKind (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...
 

Static Protected Member Functions

static bool ComputeSupportExeDirectory (FileSpec &file_spec)
 
static void ComputeHostArchitectureSupport (ArchSpec &arch_32, ArchSpec &arch_64)
 
static bool ComputeHeaderDirectory (FileSpec &file_spec)
 
static bool ComputeSystemPluginsDirectory (FileSpec &file_spec)
 
static bool ComputeUserPluginsDirectory (FileSpec &file_spec)
 
- Static Protected Member Functions inherited from lldb_private::HostInfoPosix
static bool ComputeSupportExeDirectory (FileSpec &file_spec)
 
static bool ComputeHeaderDirectory (FileSpec &file_spec)
 
- Static Protected Member Functions inherited from lldb_private::HostInfoBase
static bool ComputeSharedLibraryDirectory (FileSpec &file_spec)
 
static bool ComputeSupportExeDirectory (FileSpec &file_spec)
 
static bool ComputeProcessTempFileDirectory (FileSpec &file_spec)
 
static bool ComputeGlobalTempFileDirectory (FileSpec &file_spec)
 
static bool ComputeTempFileBaseDirectory (FileSpec &file_spec)
 
static bool ComputeHeaderDirectory (FileSpec &file_spec)
 
static bool ComputeSystemPluginsDirectory (FileSpec &file_spec)
 
static bool ComputeUserPluginsDirectory (FileSpec &file_spec)
 
static void ComputeHostArchitectureSupport (ArchSpec &arch_32, ArchSpec &arch_64)
 

Friends

class HostInfoBase
 

Additional Inherited Members

- Public Types inherited from lldb_private::HostInfoBase
enum  ArchitectureKind { eArchKindDefault, eArchKind32, eArchKind64 }
 
using SharedLibraryDirectoryHelper = void(FileSpec &this_file)
 A helper function for determining the liblldb location. More...
 

Detailed Description

Definition at line 21 of file HostInfoMacOSX.h.

Member Function Documentation

◆ ComputeHeaderDirectory()

bool HostInfoMacOSX::ComputeHeaderDirectory ( FileSpec file_spec)
staticprotected

◆ ComputeHostArchitectureSupport()

void HostInfoMacOSX::ComputeHostArchitectureSupport ( ArchSpec arch_32,
ArchSpec arch_64 
)
staticprotected

◆ ComputeSupportExeDirectory()

bool HostInfoMacOSX::ComputeSupportExeDirectory ( FileSpec file_spec)
staticprotected

◆ ComputeSystemPluginsDirectory()

bool HostInfoMacOSX::ComputeSystemPluginsDirectory ( FileSpec file_spec)
staticprotected

◆ ComputeUserPluginsDirectory()

bool HostInfoMacOSX::ComputeUserPluginsDirectory ( FileSpec file_spec)
staticprotected

◆ GetMacCatalystVersion()

llvm::VersionTuple HostInfoMacOSX::GetMacCatalystVersion ( )
static

Definition at line 101 of file HostInfoMacOSX.mm.

References ParseOSVersion().

◆ GetOSBuildString()

bool HostInfoMacOSX::GetOSBuildString ( std::string s)
static

Definition at line 58 of file HostInfoMacOSX.mm.

References PATH_MAX.

◆ GetOSKernelDescription()

bool HostInfoMacOSX::GetOSKernelDescription ( std::string s)
static

Definition at line 71 of file HostInfoMacOSX.mm.

References PATH_MAX.

◆ GetOSVersion()

llvm::VersionTuple HostInfoMacOSX::GetOSVersion ( )
static

Definition at line 94 of file HostInfoMacOSX.mm.

References ParseOSVersion().

◆ GetProgramFileSpec()

FileSpec HostInfoMacOSX::GetProgramFileSpec ( )
static

Definition at line 109 of file HostInfoMacOSX.mm.

References PATH_MAX, and lldb_private::FileSpec::SetFile().

◆ GetSharedCacheImageInfo()

SharedCacheImageInfo HostInfoMacOSX::GetSharedCacheImageInfo ( llvm::StringRef  image_name)
static

Shared cache utilities.

Definition at line 553 of file HostInfoMacOSX.mm.

◆ GetXcodeContentsDirectory()

FileSpec HostInfoMacOSX::GetXcodeContentsDirectory ( )
static

◆ GetXcodeDeveloperDirectory()

lldb_private::FileSpec HostInfoMacOSX::GetXcodeDeveloperDirectory ( )
static

◆ GetXcodeSDKPath()

llvm::StringRef HostInfoMacOSX::GetXcodeSDKPath ( XcodeSDK  sdk)
static

Query xcrun to find an Xcode SDK directory.

Definition at line 483 of file HostInfoMacOSX.mm.

References lldb_private::XcodeSDK::GetString(), GetXcodeSDK(), and LLDB_SCOPED_TIMER.

Friends And Related Function Documentation

◆ HostInfoBase

friend class HostInfoBase
friend

Definition at line 22 of file HostInfoMacOSX.h.


The documentation for this class was generated from the following files: