LLDB  mainline
Static Public Member Functions | Static Private Attributes | Friends | List of all members
lldb_private::HostInfoWindows Class Reference

#include <HostInfoWindows.h>

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

Static Public Member Functions

static void Initialize (SharedLibraryDirectoryHelper *helper=nullptr)
 
static void Terminate ()
 
static size_t GetPageSize ()
 
static UserIDResolverGetUserIDResolver ()
 
static llvm::VersionTuple GetOSVersion ()
 
static bool GetOSBuildString (std::string &s)
 
static bool GetOSKernelDescription (std::string &s)
 
static bool GetHostname (std::string &s)
 
static FileSpec GetProgramFileSpec ()
 
static FileSpec GetDefaultShell ()
 
static bool GetEnvironmentVar (const std::string &var_name, std::string &var)
 
- 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 Private Attributes

static FileSpec m_program_filespec
 

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...
 
- 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)
 

Detailed Description

Definition at line 19 of file HostInfoWindows.h.

Member Function Documentation

◆ GetDefaultShell()

FileSpec HostInfoWindows::GetDefaultShell ( )
static

Definition at line 115 of file HostInfoWindows.cpp.

References GetEnvironmentVar(), and string().

◆ GetEnvironmentVar()

bool HostInfoWindows::GetEnvironmentVar ( const std::string var_name,
std::string var 
)
static

Definition at line 126 of file HostInfoWindows.cpp.

Referenced by GetDefaultShell().

◆ GetHostname()

bool HostInfoWindows::GetHostname ( std::string s)
static

Definition at line 92 of file HostInfoWindows.cpp.

◆ GetOSBuildString()

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

Definition at line 77 of file HostInfoWindows.cpp.

References GetOSVersion().

Referenced by GetOSKernelDescription().

◆ GetOSKernelDescription()

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

Definition at line 88 of file HostInfoWindows.cpp.

References GetOSBuildString().

◆ GetOSVersion()

llvm::VersionTuple HostInfoWindows::GetOSVersion ( )
static

Definition at line 58 of file HostInfoWindows.cpp.

Referenced by GetOSBuildString().

◆ GetPageSize()

size_t HostInfoWindows::GetPageSize ( )
static

Definition at line 52 of file HostInfoWindows.cpp.

◆ GetProgramFileSpec()

FileSpec HostInfoWindows::GetProgramFileSpec ( )
static

◆ GetUserIDResolver()

UserIDResolver & HostInfoWindows::GetUserIDResolver ( )
static

Definition at line 139 of file HostInfoWindows.cpp.

References g_user_id_resolver.

◆ Initialize()

void HostInfoWindows::Initialize ( SharedLibraryDirectoryHelper helper = nullptr)
static

Definition at line 42 of file HostInfoWindows.cpp.

References lldb_private::HostInfoBase::Initialize().

◆ Terminate()

void HostInfoWindows::Terminate ( )
static

Definition at line 47 of file HostInfoWindows.cpp.

References lldb_private::HostInfoBase::Terminate().

Friends And Related Function Documentation

◆ HostInfoBase

friend class HostInfoBase
friend

Definition at line 20 of file HostInfoWindows.h.

Member Data Documentation

◆ m_program_filespec

FileSpec HostInfoWindows::m_program_filespec
staticprivate

Definition at line 39 of file HostInfoWindows.h.

Referenced by GetProgramFileSpec().


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