@@ -804,13 +804,6 @@ def setUpCommands(cls):
804804 )
805805 return commands
806806
807- def getDebugInfoSetupCommands (self ):
808- if self .getDebugInfo () == "native-pdb" :
809- return ["settings set plugin.symbol-file.pdb.reader native" ]
810- if self .getDebugInfo () == "dia-pdb" :
811- return ["settings set plugin.symbol-file.pdb.reader dia" ]
812- return []
813-
814807 def setUp (self ):
815808 """Fixture for unittest test case setup.
816809
@@ -835,6 +828,13 @@ def setUp(self):
835828 else :
836829 self .lldbDAPExec = None
837830
831+ self .lldbOption = " " .join ("-o '" + s + "'" for s in self .setUpCommands ())
832+
833+ # If we spawn an lldb process for test (via pexpect), do not load the
834+ # init file unless told otherwise.
835+ if os .environ .get ("NO_LLDBINIT" ) != "NO" :
836+ self .lldbOption += " --no-lldbinit"
837+
838838 # Assign the test method name to self.testMethodName.
839839 #
840840 # For an example of the use of this attribute, look at test/types dir.
@@ -843,14 +843,6 @@ def setUp(self):
843843 # used for all the test cases.
844844 self .testMethodName = self ._testMethodName
845845
846- setUpCommands = self .setUpCommands () + self .getDebugInfoSetupCommands ()
847- self .lldbOption = " " .join ("-o '" + s + "'" for s in setUpCommands )
848-
849- # If we spawn an lldb process for test (via pexpect), do not load the
850- # init file unless told otherwise.
851- if os .environ .get ("NO_LLDBINIT" ) != "NO" :
852- self .lldbOption += " --no-lldbinit"
853-
854846 # This is for the case of directly spawning 'lldb'/'gdb' and interacting
855847 # with it using pexpect.
856848 self .child = None
@@ -1803,8 +1795,7 @@ def no_reason(_):
18031795 # PDB is off by default, because it has a lot of failures right now.
18041796 # See llvm.org/pr149498
18051797 if original_testcase .TEST_WITH_PDB_DEBUG_INFO :
1806- dbginfo_categories .append ("native-pdb" )
1807- dbginfo_categories .append ("dia-pdb" )
1798+ dbginfo_categories .append ("pdb" )
18081799
18091800 xfail_for_debug_info_cat_fn = getattr (
18101801 attrvalue , "__xfail_for_debug_info_cat_fn__" , no_reason
@@ -1895,9 +1886,8 @@ class TestBase(Base, metaclass=LLDBTestCaseFactory):
18951886
18961887 TEST_WITH_PDB_DEBUG_INFO = False
18971888 """
1898- Subclasses can set this to True to test with both native and DIA PDB in addition to
1899- the other debug info types. This id off by default because many tests will
1900- fail due to missing functionality in PDB.
1889+ Subclasses can set this to True to test with PDB in addition to the other debug info
1890+ types. This id off by default because many tests will fail due to missing functionality in PDB.
19011891 See llvm.org/pr149498.
19021892 """
19031893
@@ -1940,8 +1930,6 @@ def setUp(self):
19401930
19411931 for s in self .setUpCommands ():
19421932 self .runCmd (s )
1943- for s in self .getDebugInfoSetupCommands ():
1944- self .runCmd (s )
19451933
19461934 # We want our debugger to be synchronous.
19471935 self .dbg .SetAsync (False )
@@ -2288,9 +2276,7 @@ def completions_match(self, command, completions, max_completions=-1):
22882276 given list of completions"""
22892277 interp = self .dbg .GetCommandInterpreter ()
22902278 match_strings = lldb .SBStringList ()
2291- interp .HandleCompletion (
2292- command , len (command ), 0 , max_completions , match_strings
2293- )
2279+ interp .HandleCompletion (command , len (command ), 0 , max_completions , match_strings )
22942280 # match_strings is a 1-indexed list, so we have to slice...
22952281 self .assertCountEqual (
22962282 completions , list (match_strings )[1 :], "List of returned completion is wrong"
0 commit comments