[LLDB] Add error message when using --show-variable-ranges without -v

This commit is contained in:
Zequan Wu 2022-03-02 14:20:08 -08:00
parent 35ec58d8c0
commit 302d7179e1
1 changed files with 9 additions and 0 deletions

View File

@ -3626,6 +3626,15 @@ public:
m_print_all = false;
}
Status OptionParsingFinished(ExecutionContext *execution_context) override {
Status status;
if (m_all_ranges && !m_verbose) {
status.SetErrorString("--show-variable-ranges must be used in "
"conjunction with --verbose.");
}
return status;
}
llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
return llvm::makeArrayRef(g_target_modules_lookup_options);
}