19 error = value_sp->SetValueFromString(value_str);
47 llvm::StringRef value_trimmed = value_ref.trim();
49 if (llvm::to_integer(value_trimmed, value)) {
55 error.SetErrorStringWithFormat(
56 "%" PRIu64
" is out of range, valid values must be between %" PRIu64
61 error.SetErrorStringWithFormat(
"invalid uint64_t string value: '%s'",
62 value_ref.str().c_str());
static llvm::raw_ostream & error(Stream &strm)
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
OptionValueUInt64()=default
static lldb::OptionValueSP Create(llvm::StringRef value_str, Status &error)
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
void DumpValue(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) override
virtual Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
void NotifyValueChanged()
virtual const char * GetTypeAsCString() const
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
A class that represents a running process on the host machine.
VarSetOperationType
Settable state variable types.
@ eVarSetOperationReplace
@ eVarSetOperationInvalid
@ eVarSetOperationInsertBefore
@ eVarSetOperationInsertAfter
std::shared_ptr< lldb_private::OptionValue > OptionValueSP