diff options
| author | jimingham <jingham@apple.com> | 2024-02-20 14:18:03 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 14:18:03 -0800 |
| commit | 563ef306017a47d387f1c36dd562b172c1ad0626 (patch) | |
| tree | 0f7d33dfd76f1c2e68422eeb03a1fd9b203a8457 /lldb/source/Commands/CommandObjectCommands.cpp | |
| parent | 31f45596737f37e16226c039ff6f53406174b9d5 (diff) | |
| download | llvm-563ef306017a47d387f1c36dd562b172c1ad0626.tar.gz llvm-563ef306017a47d387f1c36dd562b172c1ad0626.tar.bz2 llvm-563ef306017a47d387f1c36dd562b172c1ad0626.zip | |
Add the RegisterCompleter to eArgTypeRegisterName in g_argument_table (#82428)
This is a follow-on to:
https://github.com/llvm/llvm-project/pull/82085
The completer for register names was missing from the argument table. I
somehow missed that the only register completer test was x86_64, so that
test broke.
I added the completer in to the right slot in the argument table, and
added a small completions test that just uses the alias register names.
If we end up having a platform that doesn't define register names, we'll
have to skip this test there, but it should add a sniff test for
register completion that will run most everywhere.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index b7cd65059b22..7c459bdaf380 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -63,13 +63,6 @@ public: return std::string(""); } - void - HandleArgumentCompletion(CompletionRequest &request, - OptionElementVector &opt_element_vector) override { - lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks( - GetCommandInterpreter(), lldb::eDiskFileCompletion, request, nullptr); - } - Options *GetOptions() override { return &m_options; } protected: @@ -1968,13 +1961,6 @@ public: ~CommandObjectCommandsScriptImport() override = default; - void - HandleArgumentCompletion(CompletionRequest &request, - OptionElementVector &opt_element_vector) override { - lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks( - GetCommandInterpreter(), lldb::eDiskFileCompletion, request, nullptr); - } - Options *GetOptions() override { return &m_options; } protected: |
