Skip to content

Commit 91e01de

Browse files
labathjimingham
authored andcommitted
[lldb] Fix TestStepOverWatchpoint
(cherry picked from commit 090205f)
1 parent 64edd3e commit 91e01de

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,7 +34,7 @@ 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
@expectedFailureAll(
4040
oslist=["freebsd", "linux"],
@@ -46,7 +46,7 @@ def get_to_start(self, bkpt_text):
4646
@expectedFailureAll(archs=['s390x'])
4747
@add_test_categories(["basic_process"])
4848
def test_step_over(self):
49-
target, process, thread, wp = self.get_to_start("Set a breakpoint here")
49+
target, process, thread, frame, wp = self.get_to_start("Set a breakpoint here")
5050

5151
thread.StepOver()
5252
self.assertStopReason(thread.GetStopReason(), lldb.eStopReasonWatchpoint,
@@ -67,7 +67,7 @@ def test_step_over(self):
6767
bugnumber="<rdar://problem/34027183>")
6868
@add_test_categories(["basic_process"])
6969
def test_step_instruction(self):
70-
target, process, thread, wp = self.get_to_start("Set breakpoint after call")
70+
target, process, thread, frame, wp = self.get_to_start("Set breakpoint after call")
7171

7272
self.assertEquals(thread.GetStopDescription(20), 'step over')
7373

@@ -83,6 +83,7 @@ def test_step_instruction(self):
8383
if re.match("^mips", arch) or re.match("powerpc64le", arch):
8484
self.runCmd("watchpoint delete 1")
8585

86+
error = lldb.SBError()
8687
# resolve_location=True, read=False, write=True
8788
write_watchpoint = write_value.Watch(True, False, True, error)
8889
self.assertTrue(write_watchpoint, "Failed to set write watchpoint.")

0 commit comments

Comments
 (0)