40 llvm::StringRef value) {
42 error.SetErrorString(
"SetSubValue is not supported");
342 return FileSpecList();
475 return "file:line:column specifier";
483 return "format-string";
508 lldb::OptionValueSP value_sp;
511 value_sp = std::make_shared<OptionValueArch>();
514 value_sp = std::make_shared<OptionValueBoolean>(
false);
517 value_sp = std::make_shared<OptionValueChar>(
'\0');
520 value_sp = std::make_shared<OptionValueFileSpec>();
526 value_sp = std::make_shared<OptionValueFormatEntity>(
nullptr);
532 value_sp = std::make_shared<OptionValueSInt64>();
535 value_sp = std::make_shared<OptionValueString>();
538 value_sp = std::make_shared<OptionValueUInt64>();
541 value_sp = std::make_shared<OptionValueUUID>();
548 error.SetErrorString(
"unsupported type mask");
553 bool dumped_something =
false;
554 lldb::OptionValueSP m_parent_sp(
m_parent_wp.lock());
556 if (m_parent_sp->DumpQualifiedName(strm))
557 dumped_something =
true;
561 if (dumped_something)
564 dumped_something =
true;
567 return dumped_something;
572 clone->SetParent(new_parent);
584 error.SetErrorStringWithFormat(
585 "%s objects do not support the 'replace' operation",
589 error.SetErrorStringWithFormat(
590 "%s objects do not support the 'insert-before' operation",
594 error.SetErrorStringWithFormat(
595 "%s objects do not support the 'insert-after' operation",
599 error.SetErrorStringWithFormat(
603 error.SetErrorStringWithFormat(
607 error.SetErrorStringWithFormat(
611 error.SetErrorStringWithFormat(
615 error.SetErrorStringWithFormat(
"invalid operation performed on a %s object",
static llvm::raw_ostream & error(Stream &strm)
"lldb/Utility/ArgCompletionRequest.h"
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void SetCurrentValue(bool value)
bool GetCurrentValue() const
char GetCurrentValue() const
void SetCurrentValue(char value)
void SetCurrentValue(enum_type value)
enum_type GetCurrentValue() const
FileSpecList GetCurrentValue() const
FileSpec & GetCurrentValue()
void SetCurrentValue(const FileSpec &value, bool set_value_was_set)
lldb::LanguageType GetCurrentValue() const
void SetCurrentValue(lldb::LanguageType value)
const RegularExpression * GetCurrentValue() const
bool SetCurrentValue(int64_t value)
int64_t GetCurrentValue() const
llvm::StringRef GetCurrentValueAsRef() const
Status SetCurrentValue(llvm::StringRef value)
uint64_t GetCurrentValue() const
void SetCurrentValue(uint64_t value)
void SetCurrentValue(const UUID &value)
virtual bool DumpQualifiedName(Stream &strm) const
OptionValueDictionary * GetAsDictionary()
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
OptionValueSInt64 * GetAsSInt64()
static lldb::OptionValueSP CreateValueFromCStringForTypeMask(const char *value_cstr, uint32_t type_mask, Status &error)
llvm::StringRef GetStringValue() const
FileSpecList GetFileSpecListValue() const
virtual lldb::OptionValueSP Clone() const =0
virtual Type GetType() const =0
lldb::OptionValueWP m_parent_wp
OptionValueFileSpecList * GetAsFileSpecList()
UUID GetUUIDValue() const
OptionValueRegex * GetAsRegex()
uint64_t GetUInt64Value(uint64_t fail_value, bool *success_ptr)
lldb::Format GetFormatValue(lldb::Format fail_value=lldb::eFormatDefault) const
OptionValueUInt64 * GetAsUInt64()
char GetCharValue(char fail_value) const
OptionValueFormatEntity * GetAsFormatEntity()
char SetCharValue(char new_value)
OptionValuePathMappings * GetAsPathMappings()
virtual void AutoComplete(CommandInterpreter &interpreter, CompletionRequest &request)
OptionValueProperties * GetAsProperties()
OptionValueEnumeration * GetAsEnumeration()
virtual lldb::OptionValueSP DeepCopy(const lldb::OptionValueSP &new_parent) const
int64_t GetEnumerationValue(int64_t fail_value=-1) const
static const char * GetBuiltinTypeAsCString(Type t)
OptionValueFormat * GetAsFormat()
virtual ConstString GetName() const
bool GetBooleanValue(bool fail_value=false) const
OptionValueArgs * GetAsArgs()
virtual const char * GetTypeAsCString() const
OptionValueChar * GetAsChar()
OptionValueArray * GetAsArray()
lldb::LanguageType GetLanguageValue(lldb::LanguageType fail_value=lldb::eLanguageTypeUnknown) const
bool SetStringValue(llvm::StringRef new_value)
bool SetUUIDValue(const UUID &uuid)
int64_t GetSInt64Value(int64_t fail_value=0) const
bool SetBooleanValue(bool new_value)
OptionValueBoolean * GetAsBoolean()
OptionValueFileSpec * GetAsFileSpec()
FileSpec GetFileSpecValue() const
const RegularExpression * GetRegexValue() const
const FormatEntity::Entry * GetFormatEntity() const
bool SetEnumerationValue(int64_t value)
OptionValueUUID * GetAsUUID()
bool SetUInt64Value(uint64_t new_value)
OptionValueArch * GetAsArch()
bool SetFormatValue(lldb::Format new_value)
bool SetLanguageValue(lldb::LanguageType new_language)
OptionValueLanguage * GetAsLanguage()
bool SetSInt64Value(int64_t new_value)
virtual Status SetSubValue(const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef name, llvm::StringRef value)
OptionValueString * GetAsString()
bool SetFileSpecValue(const FileSpec &file_spec)
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
VarSetOperationType
Settable state variable types.
@ eVarSetOperationReplace
@ eVarSetOperationInvalid
@ eVarSetOperationInsertBefore
@ eVarSetOperationInsertAfter
Format
Display format definitions.
LanguageType
Programming language type.
@ eLanguageTypeUnknown
Unknown or invalid language value.