[lldb] Fix TestStepOverWatchpoint
authorPavel Labath <pavel@labath.sk>
Tue, 21 Mar 2023 09:44:40 +0000 (10:44 +0100)
committerPavel Labath <pavel@labath.sk>
Tue, 21 Mar 2023 09:45:12 +0000 (10:45 +0100)
lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py

index fd70bd6..f88428b 100644 (file)
@@ -34,13 +34,13 @@ class TestStepOverWatchpoint(TestBase):
         # stepping off from the breakpoint:
         bkpt.SetEnabled(False)
         
-        return (target, process, thread, read_watchpoint)
+        return (target, process, thread, frame, read_watchpoint)
     
     # Read-write watchpoints not supported on SystemZ
     @expectedFailureAll(archs=['s390x'])
     @add_test_categories(["basic_process"])
     def test_step_over(self):
-        target, process, thread, wp = self.get_to_start("Set a breakpoint here")
+        target, process, thread, frame, wp = self.get_to_start("Set a breakpoint here")
     
         thread.StepOver()
         self.assertStopReason(thread.GetStopReason(), lldb.eStopReasonWatchpoint,
@@ -61,7 +61,7 @@ class TestStepOverWatchpoint(TestBase):
         bugnumber="<rdar://problem/34027183>")
     @add_test_categories(["basic_process"])
     def test_step_instruction(self):
-        target, process, thread, wp = self.get_to_start("Set breakpoint after call")
+        target, process, thread, frame, wp = self.get_to_start("Set breakpoint after call")
 
         self.step_inst_for_watchpoint(1)
 
@@ -75,6 +75,7 @@ class TestStepOverWatchpoint(TestBase):
         if re.match("^mips", arch) or re.match("powerpc64le", arch):
             self.runCmd("watchpoint delete 1")
 
+        error = lldb.SBError()
         # resolve_location=True, read=False, write=True
         write_watchpoint = write_value.Watch(True, False, True, error)
         self.assertTrue(write_watchpoint, "Failed to set write watchpoint.")