diff options
author | Zequan Wu <zequanwu@google.com> | 2022-03-02 14:20:08 -0800 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2022-03-02 14:20:14 -0800 |
commit | 302d7179e101ebbf48c386a632828a1150a18769 (patch) | |
tree | 6445d49142fcf138c79e160254f6da2eb60e67e7 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 35ec58d8c022075230971f818c7eccb493da9376 (diff) | |
download | llvm-302d7179e101ebbf48c386a632828a1150a18769.zip llvm-302d7179e101ebbf48c386a632828a1150a18769.tar.gz llvm-302d7179e101ebbf48c386a632828a1150a18769.tar.bz2 |
[LLDB] Add error message when using --show-variable-ranges without -v
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 3af2c73..39f3af7 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -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); } |