LLDB
mainline
|
#include <OptionValue.h>
Public Types | |
enum | Type { eTypeInvalid = 0, eTypeArch, eTypeArgs, eTypeArray, eTypeBoolean, eTypeChar, eTypeDictionary, eTypeEnum, eTypeFileLineColumn, eTypeFileSpec, eTypeFileSpecList, eTypeFormat, eTypeLanguage, eTypePathMap, eTypeProperties, eTypeRegex, eTypeSInt64, eTypeString, eTypeUInt64, eTypeUUID, eTypeFormatEntity } |
enum | { eDumpOptionName = (1u << 0), eDumpOptionType = (1u << 1), eDumpOptionValue = (1u << 2), eDumpOptionDescription = (1u << 3), eDumpOptionRaw = (1u << 4), eDumpOptionCommand = (1u << 5), eDumpGroupValue = (eDumpOptionName | eDumpOptionType | eDumpOptionValue), eDumpGroupHelp, eDumpGroupExport = (eDumpOptionCommand | eDumpOptionName | eDumpOptionValue) } |
Static Public Member Functions | |
static const char * | GetBuiltinTypeAsCString (Type t) |
static uint32_t | ConvertTypeToMask (OptionValue::Type type) |
static OptionValue::Type | ConvertTypeMaskToType (uint32_t type_mask) |
static lldb::OptionValueSP | CreateValueFromCStringForTypeMask (const char *value_cstr, uint32_t type_mask, Status &error) |
Protected Types | |
using | TopmostBase = OptionValue |
Protected Member Functions | |
virtual lldb::OptionValueSP | Clone () const =0 |
Protected Attributes | |
lldb::OptionValueWP | m_parent_wp |
std::function< void()> | m_callback |
bool | m_value_was_set = false |
Definition at line 24 of file OptionValue.h.
|
protected |
Definition at line 323 of file OptionValue.h.
anonymous enum |
Enumerator | |
---|---|
eDumpOptionName | |
eDumpOptionType | |
eDumpOptionValue | |
eDumpOptionDescription | |
eDumpOptionRaw | |
eDumpOptionCommand | |
eDumpGroupValue | |
eDumpGroupHelp | |
eDumpGroupExport |
Definition at line 50 of file OptionValue.h.
Definition at line 26 of file OptionValue.h.
|
default |
|
virtualdefault |
|
virtual |
Reimplemented in lldb_private::OptionValueArch, lldb_private::OptionValueEnumeration, lldb_private::OptionValueFileSpec, lldb_private::OptionValueUUID, lldb_private::OptionValueFileColonLine, lldb_private::OptionValueBoolean, and lldb_private::OptionValueFormatEntity.
Definition at line 576 of file OptionValue.cpp.
|
pure virtual |
Implemented in lldb_private::OptionValueString, lldb_private::OptionValueEnumeration, lldb_private::OptionValueArch, lldb_private::OptionValueUInt64, lldb_private::OptionValueFileSpec, lldb_private::OptionValueSInt64, lldb_private::OptionValueDictionary, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueLanguage, lldb_private::OptionValueFormat, lldb_private::OptionValueChar, lldb_private::OptionValueArray, lldb_private::OptionValueBoolean, lldb_private::OptionValueFileColonLine, lldb_private::OptionValuePathMappings, lldb_private::OptionValueUUID, lldb_private::OptionValueFormatEntity, lldb_private::OptionValueProperties, and lldb_private::OptionValueRegex.
|
protectedpure virtual |
Implemented in lldb_private::OptionValueFileSpecList.
|
inlinestatic |
Definition at line 124 of file OptionValue.h.
References eTypeArch, eTypeArgs, eTypeArray, eTypeBoolean, eTypeChar, eTypeDictionary, eTypeEnum, eTypeFileLineColumn, eTypeFileSpec, eTypeFileSpecList, eTypeFormat, eTypeInvalid, eTypeLanguage, eTypePathMap, eTypeProperties, eTypeRegex, eTypeSInt64, eTypeString, eTypeUInt64, and eTypeUUID.
Referenced by lldb_private::OptionValueDictionary::IsHomogenous().
|
inlinestatic |
Definition at line 120 of file OptionValue.h.
Referenced by lldb_private::Property::Property().
|
static |
Definition at line 504 of file OptionValue.cpp.
References lldb::eFormatInvalid, lldb::eLanguageTypeUnknown, error(), and lldb_private::eVarSetOperationAssign.
|
virtual |
Reimplemented in lldb_private::OptionValueDictionary, lldb_private::OptionValueArray, and lldb_private::OptionValueProperties.
Definition at line 570 of file OptionValue.cpp.
References lldb_private::clone().
Referenced by lldb_private::OptionValueProperties::DeepCopy().
|
virtual |
Definition at line 552 of file OptionValue.cpp.
References GetName(), and lldb_private::Stream::PutChar().
|
pure virtual |
Implemented in lldb_private::OptionValueString, lldb_private::OptionValueProperties, lldb_private::OptionValueEnumeration, lldb_private::OptionValueArch, lldb_private::OptionValueUInt64, lldb_private::OptionValueFileSpec, lldb_private::OptionValueSInt64, lldb_private::OptionValueDictionary, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueLanguage, lldb_private::OptionValueFormat, lldb_private::OptionValueChar, lldb_private::OptionValueArray, lldb_private::OptionValueBoolean, lldb_private::OptionValueFileColonLine, lldb_private::OptionValuePathMappings, lldb_private::OptionValueUUID, lldb_private::OptionValueFormatEntity, and lldb_private::OptionValueRegex.
Referenced by lldb_private::OptionValueDictionary::DumpValue().
const OptionValueArch * OptionValue::GetAsArch | ( | ) |
Definition at line 94 of file OptionValue.cpp.
const OptionValueArch* lldb_private::OptionValue::GetAsArch | ( | ) | const |
const OptionValueArgs * OptionValue::GetAsArgs | ( | ) |
Definition at line 118 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsArgs(), and lldb_private::OptionValueProperties::SetPropertyAtIndexFromArgs().
const OptionValueArgs* lldb_private::OptionValue::GetAsArgs | ( | ) | const |
const OptionValueArray * OptionValue::GetAsArray | ( | ) |
Definition at line 106 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsArgs(), EmulationStateARM::LoadStateFromDictionary(), and lldb_private::OptionValueProperties::SetPropertyAtIndexFromArgs().
const OptionValueArray* lldb_private::OptionValue::GetAsArray | ( | ) | const |
const OptionValueBoolean * OptionValue::GetAsBoolean | ( | ) |
Definition at line 46 of file OptionValue.cpp.
const OptionValueBoolean* lldb_private::OptionValue::GetAsBoolean | ( | ) | const |
OptionValueChar * OptionValue::GetAsChar | ( | ) |
Definition at line 58 of file OptionValue.cpp.
const OptionValueChar* lldb_private::OptionValue::GetAsChar | ( | ) | const |
const OptionValueDictionary * OptionValue::GetAsDictionary | ( | ) |
Definition at line 130 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsArgs(), EmulationStateARM::LoadStateFromDictionary(), lldb_private::OptionValueProperties::SetPropertyAtIndexFromArgs(), lldb_private::EmulateInstructionARM::TestEmulation(), and lldb_private::Instruction::TestEmulation().
const OptionValueDictionary* lldb_private::OptionValue::GetAsDictionary | ( | ) | const |
const OptionValueEnumeration * OptionValue::GetAsEnumeration | ( | ) |
Definition at line 142 of file OptionValue.cpp.
const OptionValueEnumeration* lldb_private::OptionValue::GetAsEnumeration | ( | ) | const |
const OptionValueFileSpec * OptionValue::GetAsFileSpec | ( | ) |
Definition at line 70 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsOptionValueFileSpec().
const OptionValueFileSpec* lldb_private::OptionValue::GetAsFileSpec | ( | ) | const |
const OptionValueFileSpecList * OptionValue::GetAsFileSpecList | ( | ) |
Definition at line 82 of file OptionValue.cpp.
const OptionValueFileSpecList* lldb_private::OptionValue::GetAsFileSpecList | ( | ) | const |
const OptionValueFormat * OptionValue::GetAsFormat | ( | ) |
Definition at line 154 of file OptionValue.cpp.
const OptionValueFormat* lldb_private::OptionValue::GetAsFormat | ( | ) | const |
const OptionValueFormatEntity * OptionValue::GetAsFormatEntity | ( | ) |
Definition at line 178 of file OptionValue.cpp.
const OptionValueFormatEntity* lldb_private::OptionValue::GetAsFormatEntity | ( | ) | const |
const OptionValueLanguage * OptionValue::GetAsLanguage | ( | ) |
Definition at line 166 of file OptionValue.cpp.
const OptionValueLanguage* lldb_private::OptionValue::GetAsLanguage | ( | ) | const |
const OptionValuePathMappings * OptionValue::GetAsPathMappings | ( | ) |
Definition at line 190 of file OptionValue.cpp.
const OptionValuePathMappings* lldb_private::OptionValue::GetAsPathMappings | ( | ) | const |
const OptionValueProperties * OptionValue::GetAsProperties | ( | ) |
Definition at line 202 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::Apropos(), lldb_private::OptionValueProperties::GetPropertyAtPath(), and lldb_private::OptionValueProperties::GetSubProperty().
const OptionValueProperties* lldb_private::OptionValue::GetAsProperties | ( | ) | const |
const OptionValueRegex * OptionValue::GetAsRegex | ( | ) |
Definition at line 214 of file OptionValue.cpp.
Referenced by lldb_private::Disassembler::ElideMixedSourceAndDisassemblyLine().
const OptionValueRegex* lldb_private::OptionValue::GetAsRegex | ( | ) | const |
const OptionValueSInt64 * OptionValue::GetAsSInt64 | ( | ) |
Definition at line 226 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsOptionValueSInt64().
const OptionValueSInt64* lldb_private::OptionValue::GetAsSInt64 | ( | ) | const |
const OptionValueString * OptionValue::GetAsString | ( | ) |
Definition at line 238 of file OptionValue.cpp.
const OptionValueString* lldb_private::OptionValue::GetAsString | ( | ) | const |
const OptionValueUInt64 * OptionValue::GetAsUInt64 | ( | ) |
Definition at line 250 of file OptionValue.cpp.
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsOptionValueUInt64().
const OptionValueUInt64* lldb_private::OptionValue::GetAsUInt64 | ( | ) | const |
const OptionValueUUID * OptionValue::GetAsUUID | ( | ) |
Definition at line 262 of file OptionValue.cpp.
const OptionValueUUID* lldb_private::OptionValue::GetAsUUID | ( | ) | const |
bool OptionValue::GetBooleanValue | ( | bool | fail_value = false | ) | const |
Definition at line 274 of file OptionValue.cpp.
References lldb_private::OptionValueBoolean::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsBoolean().
|
static |
Definition at line 456 of file OptionValue.cpp.
Referenced by GetTypeAsCString().
char OptionValue::GetCharValue | ( | char | fail_value | ) | const |
Definition at line 290 of file OptionValue.cpp.
References lldb_private::OptionValueChar::GetCurrentValue().
int64_t OptionValue::GetEnumerationValue | ( | int64_t | fail_value = -1 | ) | const |
Definition at line 306 of file OptionValue.cpp.
References lldb_private::OptionValueEnumeration::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsEnumeration().
FileSpecList OptionValue::GetFileSpecListValue | ( | ) | const |
Definition at line 338 of file OptionValue.cpp.
References lldb_private::OptionValueFileSpecList::GetCurrentValue().
FileSpec OptionValue::GetFileSpecValue | ( | ) | const |
Definition at line 322 of file OptionValue.cpp.
References lldb_private::OptionValueFileSpec::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsFileSpec().
const FormatEntity::Entry * OptionValue::GetFormatEntity | ( | ) | const |
Definition at line 378 of file OptionValue.cpp.
References lldb_private::OptionValueFormatEntity::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsFormatEntity().
lldb::Format OptionValue::GetFormatValue | ( | lldb::Format | fail_value = lldb::eFormatDefault | ) | const |
Definition at line 345 of file OptionValue.cpp.
References lldb_private::OptionValueFormat::GetCurrentValue().
lldb::LanguageType OptionValue::GetLanguageValue | ( | lldb::LanguageType | fail_value = lldb::eLanguageTypeUnknown | ) | const |
Definition at line 362 of file OptionValue.cpp.
References lldb_private::OptionValueLanguage::GetCurrentValue().
|
inlinevirtual |
Reimplemented in lldb_private::OptionValueProperties.
Definition at line 112 of file OptionValue.h.
|
inline |
Definition at line 311 of file OptionValue.h.
References m_parent_wp.
const RegularExpression * OptionValue::GetRegexValue | ( | ) | const |
Definition at line 385 of file OptionValue.cpp.
References lldb_private::OptionValueRegex::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsOptionValueRegex().
int64_t OptionValue::GetSInt64Value | ( | int64_t | fail_value = 0 | ) | const |
Definition at line 392 of file OptionValue.cpp.
References lldb_private::OptionValueSInt64::GetCurrentValue().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsSInt64().
|
inline |
Definition at line 291 of file OptionValue.h.
References GetStringValue().
Referenced by GetStringValue().
llvm::StringRef OptionValue::GetStringValue | ( | llvm::StringRef | fail_value | ) | const |
Definition at line 408 of file OptionValue.cpp.
References lldb_private::OptionValueString::GetCurrentValueAsRef().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsString().
|
inlinevirtual |
Reimplemented in lldb_private::OptionValueDictionary, lldb_private::OptionValueArray, and lldb_private::OptionValueProperties.
Definition at line 98 of file OptionValue.h.
References error().
|
pure virtual |
Implemented in lldb_private::OptionValueString, lldb_private::OptionValueEnumeration, lldb_private::OptionValueArch, lldb_private::OptionValueUInt64, lldb_private::OptionValueFileSpec, lldb_private::OptionValueProperties, lldb_private::OptionValueSInt64, lldb_private::OptionValueDictionary, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueLanguage, lldb_private::OptionValueFormat, lldb_private::OptionValueChar, lldb_private::OptionValueArray, lldb_private::OptionValueBoolean, lldb_private::OptionValueFileColonLine, lldb_private::OptionValuePathMappings, lldb_private::OptionValueUUID, lldb_private::OptionValueFormatEntity, lldb_private::OptionValueRegex, and lldb_private::OptionValueArgs.
Referenced by GetTypeAsCString(), GetTypeAsMask(), and ValueIsTransparent().
|
inlinevirtual |
Definition at line 76 of file OptionValue.h.
References GetBuiltinTypeAsCString(), and GetType().
Referenced by lldb_private::OptionValueFileSpec::DumpValue(), and lldb_private::OptionValueEnumeration::DumpValue().
|
inline |
Definition at line 118 of file OptionValue.h.
References GetType().
uint64_t OptionValue::GetUInt64Value | ( | uint64_t | fail_value, |
bool * | success_ptr | ||
) |
Definition at line 20 of file OptionValue.cpp.
Referenced by CommandObjectProcessKDPPacketSend::DoExecute(), and lldb_private::OptionValueProperties::GetPropertyAtIndexAsUInt64().
uint64_t OptionValue::GetUInt64Value | ( | uint64_t | fail_value = 0 | ) | const |
Definition at line 424 of file OptionValue.cpp.
References lldb_private::OptionValueUInt64::GetCurrentValue().
UUID OptionValue::GetUUIDValue | ( | ) | const |
Definition at line 440 of file OptionValue.cpp.
References lldb_private::OptionValueUUID::GetCurrentValue().
|
inlinevirtual |
Reimplemented in lldb_private::OptionValueDictionary, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueArray, and lldb_private::OptionValuePathMappings.
Definition at line 110 of file OptionValue.h.
|
inline |
Definition at line 317 of file OptionValue.h.
References m_callback.
Referenced by lldb_private::OptionValueFileSpec::SetValueFromString(), and lldb_private::OptionValueEnumeration::SetValueFromString().
|
inline |
Definition at line 303 of file OptionValue.h.
References m_value_was_set.
Referenced by lldb_private::OptionGroupMemoryTag::AnyOptionWasSet(), lldb_private::OptionGroupOutputFile::AnyOptionWasSet(), lldb_private::OptionGroupFormat::AnyOptionWasSet(), CommandObjectProcessKDPPacketSend::DoExecute(), CommandObjectTargetModulesAdd::DoExecute(), and OptionGroupReadMemory::FinalizeSettings().
bool OptionValue::SetBooleanValue | ( | bool | new_value | ) |
Definition at line 281 of file OptionValue.cpp.
References lldb_private::OptionValueBoolean::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsBoolean().
char OptionValue::SetCharValue | ( | char | new_value | ) |
Definition at line 297 of file OptionValue.cpp.
References lldb_private::OptionValueChar::SetCurrentValue().
bool OptionValue::SetEnumerationValue | ( | int64_t | value | ) |
Definition at line 313 of file OptionValue.cpp.
References lldb_private::OptionValueEnumeration::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsEnumeration().
bool OptionValue::SetFileSpecValue | ( | const FileSpec & | file_spec | ) |
Definition at line 329 of file OptionValue.cpp.
References lldb_private::OptionValueFileSpec::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsFileSpec().
bool OptionValue::SetFormatValue | ( | lldb::Format | new_value | ) |
Definition at line 352 of file OptionValue.cpp.
References lldb_private::OptionValueFormat::SetCurrentValue().
bool OptionValue::SetLanguageValue | ( | lldb::LanguageType | new_language | ) |
Definition at line 369 of file OptionValue.cpp.
References lldb_private::OptionValueLanguage::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsLanguage().
|
inline |
Definition at line 305 of file OptionValue.h.
References m_value_was_set.
Referenced by lldb_private::OptionGroupMemoryTag::SetOptionValue(), lldb_private::OptionGroupBoolean::SetOptionValue(), and lldb_private::OptionGroupFormat::SetOptionValue().
|
inline |
Definition at line 307 of file OptionValue.h.
References m_parent_wp.
bool OptionValue::SetSInt64Value | ( | int64_t | new_value | ) |
Definition at line 399 of file OptionValue.cpp.
References lldb_private::OptionValueSInt64::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsSInt64().
bool OptionValue::SetStringValue | ( | llvm::StringRef | new_value | ) |
Definition at line 415 of file OptionValue.cpp.
References lldb_private::OptionValueString::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsString().
|
virtual |
Reimplemented in lldb_private::OptionValueProperties, and lldb_private::OptionValueDictionary.
Definition at line 38 of file OptionValue.cpp.
References error().
bool OptionValue::SetUInt64Value | ( | uint64_t | new_value | ) |
Definition at line 431 of file OptionValue.cpp.
References lldb_private::OptionValueUInt64::SetCurrentValue().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexAsUInt64().
bool OptionValue::SetUUIDValue | ( | const UUID & | uuid | ) |
Definition at line 447 of file OptionValue.cpp.
References lldb_private::OptionValueUUID::SetCurrentValue().
|
inline |
Definition at line 313 of file OptionValue.h.
References m_callback.
|
virtual |
Reimplemented in lldb_private::OptionValueString, lldb_private::OptionValueEnumeration, lldb_private::OptionValueProperties, lldb_private::OptionValueArch, lldb_private::OptionValueUInt64, lldb_private::OptionValueFileSpec, lldb_private::OptionValueSInt64, lldb_private::OptionValueDictionary, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueLanguage, lldb_private::OptionValueFormat, lldb_private::OptionValueChar, lldb_private::OptionValueArray, lldb_private::OptionValueBoolean, lldb_private::OptionValueFileColonLine, lldb_private::OptionValuePathMappings, lldb_private::OptionValueUUID, lldb_private::OptionValueFormatEntity, and lldb_private::OptionValueRegex.
Definition at line 579 of file OptionValue.cpp.
References error(), lldb_private::eVarSetOperationAppend, lldb_private::eVarSetOperationAssign, lldb_private::eVarSetOperationClear, lldb_private::eVarSetOperationInsertAfter, lldb_private::eVarSetOperationInsertBefore, lldb_private::eVarSetOperationInvalid, lldb_private::eVarSetOperationRemove, and lldb_private::eVarSetOperationReplace.
Referenced by lldb_private::OptionValueFileSpec::SetValueFromString(), lldb_private::OptionValueProperties::SetValueFromString(), and lldb_private::OptionValueEnumeration::SetValueFromString().
|
inlinevirtual |
Definition at line 72 of file OptionValue.h.
References eTypeProperties, and GetType().
Referenced by lldb_private::OptionValueProperties::DumpValue().
|
protected |
Definition at line 330 of file OptionValue.h.
Referenced by NotifyValueChanged(), and SetValueChangedCallback().
|
protected |
Definition at line 329 of file OptionValue.h.
Referenced by GetParent(), and SetParent().
|
protected |
Definition at line 331 of file OptionValue.h.
Referenced by lldb_private::OptionValueRegex::Clear(), lldb_private::OptionValueArray::Clear(), lldb_private::OptionValuePathMappings::Clear(), lldb_private::OptionValueUUID::Clear(), lldb_private::OptionValueBoolean::Clear(), lldb_private::OptionValueChar::Clear(), lldb_private::OptionValueFormat::Clear(), lldb_private::OptionValueFileSpecList::Clear(), lldb_private::OptionValueLanguage::Clear(), lldb_private::OptionValueDictionary::Clear(), lldb_private::OptionValueSInt64::Clear(), lldb_private::OptionValueFileSpec::Clear(), lldb_private::OptionValueUInt64::Clear(), lldb_private::OptionValueArch::Clear(), lldb_private::OptionValueEnumeration::Clear(), lldb_private::OptionValueString::Clear(), OptionWasSet(), lldb_private::OptionValueFileSpec::SetCurrentValue(), lldb_private::OptionValueArch::SetCurrentValue(), SetOptionWasSet(), and lldb_private::OptionValueFileSpec::SetValueFromString().