Skip to content

Commit 0d4dfb5

Browse files
committed
Use num_locs to detect wrap around rather than hard-coding 5.
1 parent a539254 commit 0d4dfb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/functionalities/breakpoint/scripted_bkpt/was_hit/bkpt_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def was_hit(self, frame, bp_loc):
3737
tmp_loc = self.cur_facade_loc
3838

3939
self.cur_facade_loc = self.cur_facade_loc + 1
40-
if self.cur_facade_loc == 5:
40+
if self.cur_facade_loc == self.num_locs + 1:
4141
self.cur_facade_loc = 1
4242

4343
if tmp_loc == self.loc_to_miss:

0 commit comments

Comments
 (0)