LLDB  mainline
HostInfoWindows.h
Go to the documentation of this file.
1 //===-- HostInfoWindows.h ---------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef lldb_Host_windows_HostInfoWindows_h_
10 #define lldb_Host_windows_HostInfoWindows_h_
11 
12 #include "lldb/Host/HostInfoBase.h"
13 #include "lldb/Utility/FileSpec.h"
14 #include "llvm/Support/VersionTuple.h"
15 
16 namespace lldb_private {
17 class UserIDResolver;
18 
19 class HostInfoWindows : public HostInfoBase {
20  friend class HostInfoBase;
21 
22 public:
23  static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
24  static void Terminate();
25 
26  static size_t GetPageSize();
28 
29  static llvm::VersionTuple GetOSVersion();
30  static llvm::Optional<std::string> GetOSBuildString();
31  static llvm::Optional<std::string> GetOSKernelDescription();
32  static bool GetHostname(std::string &s);
34  static FileSpec GetDefaultShell();
35 
36  static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
37 
38 private:
40 };
41 }
42 
43 #endif
lldb_private::HostInfoWindows::Terminate
static void Terminate()
Definition: HostInfoWindows.cpp:47
lldb_private::HostInfoWindows::m_program_filespec
static FileSpec m_program_filespec
Definition: HostInfoWindows.h:39
lldb_private::HostInfoWindows::GetHostname
static bool GetHostname(std::string &s)
Definition: HostInfoWindows.cpp:89
lldb_private::HostInfoWindows::GetPageSize
static size_t GetPageSize()
Definition: HostInfoWindows.cpp:52
lldb_private::HostInfoWindows::GetOSBuildString
static llvm::Optional< std::string > GetOSBuildString()
Definition: HostInfoWindows.cpp:77
lldb_private::HostInfoBase::SharedLibraryDirectoryHelper
void(FileSpec &this_file) SharedLibraryDirectoryHelper
A helper function for determining the liblldb location.
Definition: HostInfoBase.h:44
lldb_private::HostInfoWindows::GetOSVersion
static llvm::VersionTuple GetOSVersion()
Definition: HostInfoWindows.cpp:58
lldb_private::HostInfoWindows::GetOSKernelDescription
static llvm::Optional< std::string > GetOSKernelDescription()
Definition: HostInfoWindows.cpp:85
lldb_private::HostInfoWindows::Initialize
static void Initialize(SharedLibraryDirectoryHelper *helper=nullptr)
Definition: HostInfoWindows.cpp:42
lldb_private::FileSpec
Definition: FileSpec.h:56
lldb_private::HostInfoWindows::GetProgramFileSpec
static FileSpec GetProgramFileSpec()
Definition: HostInfoWindows.cpp:100
lldb_private::HostInfoWindows::GetUserIDResolver
static UserIDResolver & GetUserIDResolver()
Definition: HostInfoWindows.cpp:136
HostInfoBase.h
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
lldb_private::UserIDResolver
An abstract interface for things that know how to map numeric user/group IDs into names.
Definition: UserIDResolver.h:22
lldb_private::HostInfoBase
Definition: HostInfoBase.h:33
lldb_private::HostInfoWindows::GetEnvironmentVar
static bool GetEnvironmentVar(const std::string &var_name, std::string &var)
Definition: HostInfoWindows.cpp:123
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
FileSpec.h
lldb_private::HostInfoWindows::GetDefaultShell
static FileSpec GetDefaultShell()
Definition: HostInfoWindows.cpp:112
lldb_private::HostInfoWindows
Definition: HostInfoWindows.h:19