We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976f3b3 commit c52ff0cCopy full SHA for c52ff0c
lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -755,8 +755,13 @@ def check_breakpoint(
755
expected_location_resolved - Extected resolved status for the location_id (True/False). Default - True.
756
expected_location_hit_count - Expected hit count for the breakpoint at location_id. Must be set if the location_id parameter is set.
757
"""
758
-
759
- bkpt = test.target().FindBreakpointByID(bpno)
+
+ if isinstance(test.target, lldb.SBTarget):
760
+ target = test.target
761
+ else:
762
+ target = test.target()
763
+ bkpt = target.FindBreakpointByID(bpno)
764
765
test.assertTrue(bkpt.IsValid(), "Breakpoint is not valid.")
766
767
if expected_locations is not None:
0 commit comments