Lines Matching refs:breakpoint

2 Test breakpoint conditions with 'breakpoint modify -c <expr> id'.
13 mydir = os.path.join("functionalities", "breakpoint", "breakpoint_conditions")
18 """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'."""
25 """Exercise breakpoint condition inline with 'breakpoint set'."""
33 """Use Python APIs to set breakpoint conditions."""
39 """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'."""
45 """Exercise breakpoint condition inline with 'breakpoint set'."""
52 """Use Python APIs to set breakpoint conditions."""
64 """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'."""
69 # Create a breakpoint by function name 'c' and set the condition.
72 # Create a breakpoint by function name 'c'.
75 # And set a condition on the breakpoint to stop on when 'val == 3'.
76 self.runCmd("breakpoint modify -c 'val == 3' 1")
85 # 'frame variable --show-types val' should return 3 due to breakpoint condition.
90 self.expect("breakpoint list -f", BREAKPOINT_HIT_THRICE,
98 #substrs = ["stop reason = breakpoint"],
102 # Test that "breakpoint modify -c ''" clears the condition for the last
103 # created breakpoint, so that when the breakpoint hits, val == 1.
105 self.runCmd("breakpoint modify -c ''")
106 self.expect("breakpoint list -f", BREAKPOINT_STATE_CORRECT, matching=False,
116 # 'frame variable --show-types val' should return 1 since it is the first breakpoint hit.
121 self.runCmd("breakpoint disable")
123 self.runCmd("breakpoint set -p Loop")
124 self.runCmd("breakpoint modify -c ($eax&&i)")
136 """Use Python APIs to set breakpoint conditions."""
143 # Now create a breakpoint on main.c by name 'c'.
144 breakpoint = target.BreakpointCreateByName('c', 'a.out')
145 #print "breakpoint:", breakpoint
146 self.assertTrue(breakpoint and
147 breakpoint.GetNumLocations() == 1,
150 # We didn't associate a thread index with the breakpoint, so it should be invalid.
151 self.assertTrue(breakpoint.GetThreadIndex() == lldb.UINT32_MAX,
154 self.assertTrue(breakpoint.GetThreadName() is None,
157 # Let's set the thread index for this breakpoint and verify that it is,
159 breakpoint.SetThreadIndex(1) # There's only one thread for the process.
160 self.assertTrue(breakpoint.GetThreadIndex() == 1,
163 # Get the breakpoint location from breakpoint after we verified that,
165 location = breakpoint.GetLocationAtIndex(0)
170 # Set the condition on the breakpoint location.
182 self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
188 # The hit count for the breakpoint should be 3.
189 self.assertTrue(breakpoint.GetHitCount() == 3)