25 "Omit function arguments."},
28 "Omit recognized function arguments."},
31 "Omit local variables."},
34 "Show the current frame source file global and static variables."},
37 "Show variable declaration information (source file and line where the "
38 "variable was declared)."},
41 "The <variable-name> argument for name lookups are regular expressions."},
44 "Show variable scope (argument, local, global, static)."},
47 "Specify the summary that the variable output should use."},
50 "Specify a summary string to use to format the variable output."},
61 "must specify a valid named summary");
66 "must specify a valid named summary");
73 "must specify a non-empty summary string");
78 : include_frame_options(show_frame_options), show_args(false),
79 show_recognized_args(false), show_locals(false), show_globals(false),
80 use_regex(false), show_scope(false), show_decl(false),
85 llvm::StringRef option_arg,
88 llvm::ArrayRef<OptionDefinition> variable_options =
90 const int short_option = variable_options[option_idx].short_option;
91 switch (short_option) {
120 llvm_unreachable(
"Unimplemented option");
static llvm::raw_ostream & error(Stream &strm)
static Status ValidateSummaryString(const char *str, void *)
static Status ValidateNamedSummary(const char *str, void *)
static const auto g_variable_options_noframe
static constexpr OptionDefinition g_variable_options[]
static constexpr auto g_num_frame_options
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
bool include_frame_options
OptionValueString summary_string
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
OptionGroupVariable(bool show_frame_options)
void OptionParsingStarting(ExecutionContext *execution_context) override
OptionValueString summary
bool show_recognized_args
Status SetCurrentValue(llvm::StringRef value)
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
@ eArgTypeRegularExpression