LLDB mainline
|
#include <OptionGroupPlatform.h>
Public Member Functions | |
OptionGroupPlatform (bool include_platform_option) | |
~OptionGroupPlatform () override=default | |
llvm::ArrayRef< OptionDefinition > | GetDefinitions () override |
Status | SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override |
Status | SetOptionValue (uint32_t, const char *, ExecutionContext *)=delete |
void | OptionParsingStarting (ExecutionContext *execution_context) override |
lldb::PlatformSP | CreatePlatformWithOptions (CommandInterpreter &interpreter, const ArchSpec &arch, bool make_selected, Status &error, ArchSpec &platform_arch) const |
bool | PlatformWasSpecified () const |
void | SetPlatformName (const char *platform_name) |
const std::string & | GetSDKRootDirectory () const |
void | SetSDKRootDirectory (std::string sdk_root_directory) |
const std::string & | GetSDKBuild () const |
void | SetSDKBuild (std::string sdk_build) |
bool | PlatformMatches (const lldb::PlatformSP &platform_sp) const |
Public Member Functions inherited from lldb_private::OptionGroup | |
OptionGroup ()=default | |
virtual | ~OptionGroup ()=default |
virtual llvm::ArrayRef< OptionDefinition > | GetDefinitions ()=0 |
virtual Status | SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context)=0 |
virtual void | OptionParsingStarting (ExecutionContext *execution_context)=0 |
virtual Status | OptionParsingFinished (ExecutionContext *execution_context) |
Protected Attributes | |
std::string | m_platform_name |
std::string | m_sdk_sysroot |
std::string | m_sdk_build |
llvm::VersionTuple | m_os_version |
bool | m_include_platform_option |
Definition at line 21 of file OptionGroupPlatform.h.
|
inline |
Definition at line 23 of file OptionGroupPlatform.h.
|
overridedefault |
PlatformSP OptionGroupPlatform::CreatePlatformWithOptions | ( | CommandInterpreter & | interpreter, |
const ArchSpec & | arch, | ||
bool | make_selected, | ||
Status & | error, | ||
ArchSpec & | platform_arch | ||
) | const |
Definition at line 18 of file OptionGroupPlatform.cpp.
References lldb_private::ArchSpec::CompatibleMatch, lldb_private::PlatformList::Create(), error(), lldb_private::CommandInterpreter::GetDebugger(), lldb_private::PlatformList::GetOrCreate(), lldb_private::Debugger::GetPlatformList(), lldb_private::ArchSpec::GetTriple(), lldb_private::ArchSpec::IsValid(), m_os_version, m_platform_name, m_sdk_build, m_sdk_sysroot, and lldb_private::PlatformList::SetSelectedPlatform().
Referenced by lldb_private::TargetList::CreateTargetInternal(), and CommandObjectPlatformSelect::DoExecute().
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 87 of file OptionGroupPlatform.cpp.
References g_option_table, and m_include_platform_option.
|
inline |
Definition at line 56 of file OptionGroupPlatform.h.
References m_sdk_build.
|
inline |
Definition at line 50 of file OptionGroupPlatform.h.
References m_sdk_sysroot.
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 63 of file OptionGroupPlatform.cpp.
References m_os_version, m_platform_name, m_sdk_build, and m_sdk_sysroot.
bool OptionGroupPlatform::PlatformMatches | ( | const lldb::PlatformSP & | platform_sp | ) | const |
Definition at line 129 of file OptionGroupPlatform.cpp.
References m_os_version, m_platform_name, m_sdk_build, and m_sdk_sysroot.
Referenced by lldb_private::TargetList::CreateTargetInternal().
|
inline |
Definition at line 41 of file OptionGroupPlatform.h.
References m_platform_name.
Referenced by lldb_private::TargetList::CreateTargetInternal().
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 95 of file OptionGroupPlatform.cpp.
References error(), g_option_table, m_include_platform_option, m_os_version, m_platform_name, m_sdk_build, m_sdk_sysroot, and lldb_private::OptionDefinition::short_option.
|
delete |
|
inline |
Definition at line 43 of file OptionGroupPlatform.h.
References m_platform_name.
Referenced by lldb::SBDebugger::CreateTarget(), and CommandObjectPlatformSelect::DoExecute().
|
inline |
Definition at line 58 of file OptionGroupPlatform.h.
References m_sdk_build.
|
inline |
Definition at line 52 of file OptionGroupPlatform.h.
References m_sdk_sysroot.
|
protected |
Definition at line 69 of file OptionGroupPlatform.h.
Referenced by GetDefinitions(), and SetOptionValue().
|
protected |
Definition at line 68 of file OptionGroupPlatform.h.
Referenced by CreatePlatformWithOptions(), OptionParsingStarting(), PlatformMatches(), and SetOptionValue().
|
protected |
Definition at line 65 of file OptionGroupPlatform.h.
Referenced by CreatePlatformWithOptions(), OptionParsingStarting(), PlatformMatches(), PlatformWasSpecified(), SetOptionValue(), and SetPlatformName().
|
protected |
Definition at line 67 of file OptionGroupPlatform.h.
Referenced by CreatePlatformWithOptions(), GetSDKBuild(), OptionParsingStarting(), PlatformMatches(), SetOptionValue(), and SetSDKBuild().
|
protected |
Definition at line 66 of file OptionGroupPlatform.h.
Referenced by CreatePlatformWithOptions(), GetSDKRootDirectory(), OptionParsingStarting(), PlatformMatches(), SetOptionValue(), and SetSDKRootDirectory().