33 "Watch for read/write",
41 "Watch for byte size of 1",
46 "Watch for byte size of 2",
51 "Watch for byte size of 4",
56 "Watch for byte size of 8",
63 "Specify the type of watching to perform."},
66 "Number of bytes to use to watch a region."},
76 "Language of expression to run"}};
90 llvm::StringRef option_arg,
94 switch (short_option) {
99 sstr.
Printf(
"Unknown language type: '%s' for expression. List of "
100 "supported languages:\n",
101 option_arg.str().c_str());
111 if (
error.Success()) {
123 llvm_unreachable(
"Unimplemented option");
static llvm::raw_ostream & error(Stream &strm)
static constexpr OptionDefinition g_option_table[]
static constexpr OptionEnumValueElement g_watch_size[]
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
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
void OptionParsingStarting(ExecutionContext *execution_context) override
bool watch_type_specified
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
static bool IsWatchSizeSupported(uint32_t watch_size)
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.
@ 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.