aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-09-11 10:59:49 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-09-11 11:00:57 +0000
commit825adbe5585219ce731045defa019defaf96faab (patch)
tree039de943ecc83339b53be997544e0b6e964f6205 /lldb/source/Commands/CommandObjectTarget.cpp
parentef87d438345b1fe0fa464af1f92ba2675eff8c63 (diff)
downloadllvm-825adbe5585219ce731045defa019defaf96faab.zip
llvm-825adbe5585219ce731045defa019defaf96faab.tar.gz
llvm-825adbe5585219ce731045defa019defaf96faab.tar.bz2
[lldb] Don't tab complete stop-hook delete beyond 1st argument
This already applies to enable and disable, delete was missing a check. This cannot be tested properly with the current completion tests, but it will be when I make them more strict in a follow up patch.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 3e024ff..33330ef 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -4942,6 +4942,8 @@ public:
void
HandleArgumentCompletion(CompletionRequest &request,
OptionElementVector &opt_element_vector) override {
+ if (request.GetCursorIndex())
+ return;
lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(
GetCommandInterpreter(), lldb::eStopHookIDCompletion, request, nullptr);
}