2 Test thread step-in [ -r | --step-over-regexp ].
7 from lldbsuite
.test
.lldbtest
import *
8 import lldbsuite
.test
.lldbutil
as lldbutil
9 from lldbsuite
.test
.decorators
import *
12 class ThreadStepInAvoidRegexTestCase(TestBase
):
15 self
.line2
= line_number("main.c", "// assignment to B2")
18 def test_step_out_avoid_regexp(self
):
19 """Exercise thread step-in -r"""
21 lldbutil
.run_to_source_breakpoint(
23 "frame select 2, thread step-out while stopped",
24 lldb
.SBFileSpec("main.c"),
27 # Now step in, skipping the frames for 'b' and 'a'.
28 self
.runCmd("thread step-in -r 'a'")
30 # We should be at the assignment to B2.
34 substrs
=["stop reason = step in"],
35 patterns
=["frame #0.*main.c:%d" % self
.line2
],