xref: /llvm-project/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.lldbtest import *
3import lldbsuite.test.lldbutil as lldbutil
4
5
6class StepThroughTrampoline(TestBase):
7    def test(self):
8        self.build()
9        (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
10            self,
11            "// Set a breakpoint here",
12            lldb.SBFileSpec("main.cpp"),
13            extra_images=["foo"],
14        )
15        thread.StepInto()
16
17        foo_line = line_number("foo.cpp", "// End up here")
18        self.expect("frame info", substrs=["foo.cpp:{}:".format(foo_line)])
19