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."},
60 return Status(
"must specify a valid named summary");
64 return Status(
"must specify a valid named summary");
70 return Status(
"must specify a non-empty summary string");
75 : include_frame_options(show_frame_options), show_args(false),
76 show_recognized_args(false), show_locals(false), show_globals(false),
77 use_regex(false), show_scope(false), show_decl(false),
82 llvm::StringRef option_arg,
85 llvm::ArrayRef<OptionDefinition> variable_options =
87 const int short_option = variable_options[option_idx].short_option;
88 switch (short_option) {
117 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)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
@ eArgTypeRegularExpression