Skip to content

Commit 090205f

Browse files
committed
[lldb] Fix TestStepOverWatchpoint
1 parent 3cfb081 commit 090205f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ def get_to_start(self, bkpt_text):
3434
# stepping off from the breakpoint:
3535
bkpt.SetEnabled(False)
3636

37-
return (target, process, thread, read_watchpoint)
37+
return (target, process, thread, frame, read_watchpoint)
3838

3939
# Read-write watchpoints not supported on SystemZ
4040
@expectedFailureAll(archs=['s390x'])
4141
@add_test_categories(["basic_process"])
4242
def test_step_over(self):
43-
target, process, thread, wp = self.get_to_start("Set a breakpoint here")
43+
target, process, thread, frame, wp = self.get_to_start("Set a breakpoint here")
4444

4545
thread.StepOver()
4646
self.assertStopReason(thread.GetStopReason(), lldb.eStopReasonWatchpoint,
@@ -61,7 +61,7 @@ def test_step_over(self):
6161
bugnumber="<rdar://problem/34027183>")
6262
@add_test_categories(["basic_process"])
6363
def test_step_instruction(self):
64-
target, process, thread, wp = self.get_to_start("Set breakpoint after call")
64+
target, process, thread, frame, wp = self.get_to_start("Set breakpoint after call")
6565

6666
self.step_inst_for_watchpoint(1)
6767

@@ -75,6 +75,7 @@ def test_step_instruction(self):
7575
if re.match("^mips", arch) or re.match("powerpc64le", arch):
7676
self.runCmd("watchpoint delete 1")
7777

78+
error = lldb.SBError()
7879
# resolve_location=True, read=False, write=True
7980
write_watchpoint = write_value.Watch(True, False, True, error)
8081
self.assertTrue(write_watchpoint, "Failed to set write watchpoint.")

0 commit comments

Comments
 (0)