33 "Watch for modifications",
38 "Watch for read/write",
45 "Specify the type of watching to perform."},
48 "Number of bytes to use to watch a region."},
58 "Language of expression to run"}};
62 llvm::StringRef option_arg,
66 switch (short_option) {
71 sstr.
Printf(
"Unknown language type: '%s' for expression. List of "
72 "supported languages:\n",
73 option_arg.str().c_str());
83 if (
error.Success()) {
92 error.SetErrorStringWithFormat(
"invalid --size option value '%s'",
93 option_arg.str().c_str());
97 llvm_unreachable(
"Unimplemented option");
static llvm::raw_ostream & error(Stream &strm)
static constexpr OptionDefinition g_option_table[]
static constexpr OptionEnumValueElement g_watch_type[]
static constexpr OptionDefinition g_option_table[]
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
static void PrintSupportedLanguagesForExpressions(Stream &s, llvm::StringRef prefix, llvm::StringRef suffix)
Prints to the specified stream 's' each language type that the current target supports for expression...
static lldb::LanguageType GetLanguageTypeFromString(const char *string)=delete
lldb::LanguageType language_type
OptionValueUInt64 watch_size
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
WatchType
eWatchRead == LLDB_WATCH_TYPE_READ eWatchWrite == LLDB_WATCH_TYPE_WRITE eWatchModify == LLDB_WATCH_TY...
void OptionParsingStarting(ExecutionContext *execution_context) override
bool watch_type_specified
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
uint64_t GetCurrentValue() const
Status SetValueFromString(llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign) override
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
A class that represents a running process on the host machine.
llvm::ArrayRef< OptionEnumValueElement > OptionEnumValues
@ eLanguageTypeUnknown
Unknown or invalid language value.
static int64_t ToOptionEnum(llvm::StringRef s, const OptionEnumValues &enum_values, int32_t fail_value, Status &error)
int short_option
Single character for this option.