Skip to content

Commit 302d717

Browse files
committed
[LLDB] Add error message when using --show-variable-ranges without -v
1 parent 35ec58d commit 302d717

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3626,6 +3626,15 @@ class CommandObjectTargetModulesLookup : public CommandObjectParsed {
36263626
m_print_all = false;
36273627
}
36283628

3629+
Status OptionParsingFinished(ExecutionContext *execution_context) override {
3630+
Status status;
3631+
if (m_all_ranges && !m_verbose) {
3632+
status.SetErrorString("--show-variable-ranges must be used in "
3633+
"conjunction with --verbose.");
3634+
}
3635+
return status;
3636+
}
3637+
36293638
llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
36303639
return llvm::makeArrayRef(g_target_modules_lookup_options);
36313640
}

0 commit comments

Comments
 (0)