aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectRegister.cpp
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2024-02-19 18:19:36 -0800
committerShubham Sandeep Rastogi <srastogi22@apple.com>2024-02-19 18:19:59 -0800
commit9ed8b272c30a01c450616f0ed8b2373d5d618ebb (patch)
tree767aa897f69692523a196a128d954ba408482708 /lldb/source/Commands/CommandObjectRegister.cpp
parent744616b3aebd008a5ad0e9de9f82f5e284440ab1 (diff)
downloadllvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.zip
llvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.tar.gz
llvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.tar.bz2
Revert "Centralize the handling of completion for simple argument lists. (#82085)"
This reverts commit 21631494b068d9364b8dc8f18e59adee9131a0a5. Reverted because of greendragon failure: ******************** TEST 'lldb-api :: functionalities/completion/TestCompletion.py' FAILED ******************** Script:
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectRegister.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp
index 4ffdde1..a4d53e5 100644
--- a/lldb/source/Commands/CommandObjectRegister.cpp
+++ b/lldb/source/Commands/CommandObjectRegister.cpp
@@ -80,7 +80,9 @@ public:
OptionElementVector &opt_element_vector) override {
if (!m_exe_ctx.HasProcessScope())
return;
- CommandObject::HandleArgumentCompletion(request, opt_element_vector);
+
+ lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(
+ GetCommandInterpreter(), lldb::eRegisterCompletion, request, nullptr);
}
Options *GetOptions() override { return &m_option_group; }
@@ -438,7 +440,8 @@ different for the same register when connected to different debug servers.)");
OptionElementVector &opt_element_vector) override {
if (!m_exe_ctx.HasProcessScope() || request.GetCursorIndex() != 0)
return;
- CommandObject::HandleArgumentCompletion(request, opt_element_vector);
+ CommandCompletions::InvokeCommonCompletionCallbacks(
+ GetCommandInterpreter(), lldb::eRegisterCompletion, request, nullptr);
}
protected: