18 lldb::OptionValueSP OptionValueUInt64::Create(llvm::StringRef value_str,
21 error = value_sp->SetValueFromString(value_str);
29 if (dump_mask & eDumpOptionType)
30 strm.
Printf(
"(%s)", GetTypeAsCString());
31 if (dump_mask & eDumpOptionValue) {
32 if (dump_mask & eDumpOptionType)
34 strm.
Printf(
"%" PRIu64, m_current_value);
38 Status OptionValueUInt64::SetValueFromString(llvm::StringRef value_ref,
50 std::string value_str = value_ref.trim().str();
53 m_value_was_set =
true;
54 m_current_value = value;
67 error = OptionValue::SetValueFromString(value_ref, op);
73 lldb::OptionValueSP OptionValueUInt64::DeepCopy()
const {
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
Enumerations for broadcasting.
A stream class that can stream formatted output to a file.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
VarSetOperationType
Settable state variable types.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
bool Fail() const
Test for error condition.
int SetErrorStringWithFormat(const char *format,...) __attribute__((format(printf
Set the current error string to a formatted error string.
uint64_t ToUInt64(const char *s, uint64_t fail_value=0, int base=0, bool *success_ptr=nullptr)