38 return properties_sp->GetSubValue(exe_ctx, path,
error);
39 return lldb::OptionValueSP();
45 llvm::StringRef value) {
48 return properties_sp->SetSubValue(exe_ctx, op, path, value);
50 error.SetErrorString(
"no properties");
62 llvm::json::Value json = properties_sp->ToJSON(exe_ctx);
63 strm.
Printf(
"%s", llvm::formatv(
"{0:2}", json).str().c_str());
65 properties_sp->DumpValue(exe_ctx, strm, dump_mask);
74 return properties_sp->DumpAllDescriptions(interpreter, strm);
79 llvm::StringRef property_path,
83 return properties_sp->DumpPropertyValue(exe_ctx, strm, property_path,
87 error.SetErrorString(
"empty property list");
93 std::vector<const Property *> &matching_properties)
const {
96 properties_sp->Apropos(keyword, matching_properties);
98 return matching_properties.size();
101lldb::OptionValuePropertiesSP
106 return properties_sp->GetSubProperty(exe_ctx, name);
107 return lldb::OptionValuePropertiesSP();
117 size_t dot_pos = setting.find_first_of(
'.');
118 return setting.take_front(dot_pos) == experimental;
static llvm::raw_ostream & error(Stream &strm)
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
lldb::OptionValuePropertiesSP GetSubProperty(const ExecutionContext *exe_ctx, ConstString name)
virtual void DumpAllDescriptions(CommandInterpreter &interpreter, Stream &strm) const
virtual Status DumpPropertyValue(const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllPropertyValues(const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask, bool is_json=false)
size_t Apropos(llvm::StringRef keyword, std::vector< const Property * > &matching_properties) const
virtual Status SetPropertyValue(const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value)
virtual lldb::OptionValueSP GetPropertyValue(const ExecutionContext *exe_ctx, llvm::StringRef property_path, Status &error) const
static bool IsSettingExperimental(llvm::StringRef setting)
virtual lldb::OptionValuePropertiesSP GetValueProperties() const
static const char * GetExperimentalSettingsName()
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.