[Lldb-commits] [lldb] dc672d2 - Remove the "generic" register completion test. (#82445)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 20 16:28:52 PST 2024
Author: jimingham
Date: 2024-02-20T16:28:48-08:00
New Revision: dc672d2f6a48fb3d502c260eb353f389723ec417
URL: https://github.com/llvm/llvm-project/commit/dc672d2f6a48fb3d502c260eb353f389723ec417
DIFF: https://github.com/llvm/llvm-project/commit/dc672d2f6a48fb3d502c260eb353f389723ec417.diff
LOG: Remove the "generic" register completion test. (#82445)
For reasons that are not clear to me, on arm64, the alias registers are
listed in list of register info's we do completion against, but for
x86_64 they are not. Maybe this is a difference in how the dynamic
register builders work for the two systems. Anyway, it doesn't look
possible to make a generic one.
Added:
Modified:
lldb/test/API/functionalities/completion/TestCompletion.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/completion/TestCompletion.py b/lldb/test/API/functionalities/completion/TestCompletion.py
index b4681062a7d4e8..f71bc73928f0f4 100644
--- a/lldb/test/API/functionalities/completion/TestCompletion.py
+++ b/lldb/test/API/functionalities/completion/TestCompletion.py
@@ -787,27 +787,6 @@ def test_register_read_and_write_on_x86(self):
# register write can only take exact one register name as argument
self.complete_from_to("register write rbx ", [])
- def test_register_read_and_write_generic(self):
- """Test the completion of the commands register read and write on x86"""
-
- self.build()
- self.main_source_spec = lldb.SBFileSpec("main.cpp")
- lldbutil.run_to_source_breakpoint(self, "// Break here", self.main_source_spec)
-
- # test cases for register read
- self.complete_from_to("register read f", ["fp"])
- # register read can take multiple register names as arguments
- self.complete_from_to("register read sp ", ["sp", "fp"])
- # complete with prefix '$'
- self.complete_from_to("register read sp $", ["$sp", "$fp"])
- self.complete_from_to("register read $x0 ", ["sp", "fp"])
-
- # test cases for register write
- self.complete_from_to("register write ", ["fp", "sp"])
- self.complete_from_to("register write f", ["fp"])
- # register write can only take exact one register name as argument
- self.complete_from_to("register write fp ", [])
-
def test_common_completion_target_stophook_ids(self):
subcommands = ["delete", "enable", "disable"]
More information about the lldb-commits
mailing list