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."},
55 return Status(
"must specify a valid named summary");
56 TypeSummaryImplSP summary_sp;
59 return Status(
"must specify a valid named summary");
65 return Status(
"must specify a non-empty summary string");
70 : include_frame_options(show_frame_options), show_args(false),
71 show_recognized_args(false), show_locals(false), show_globals(false),
72 use_regex(false), show_scope(false), show_decl(false),
77 llvm::StringRef option_arg,
83 switch (short_option) {
112 llvm_unreachable(
"Unimplemented option");
131#define NUM_FRAME_OPTS 3
static llvm::raw_ostream & error(Stream &strm)
static Status ValidateSummaryString(const char *str, void *)
static Status ValidateNamedSummary(const char *str, void *)
static constexpr OptionDefinition g_variable_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.
@ eArgTypeRegularExpression
int short_option
Single character for this option.