1import lldb 2from lldbsuite.test.lldbtest import * 3import lldbsuite.test.lldbutil as lldbutil 4 5class StepThroughTrampoline(TestBase): 6 def test(self): 7 self.build() 8 (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self, 9 "// Set a breakpoint here", 10 lldb.SBFileSpec("main.cpp"), 11 extra_images=["foo"]) 12 thread.StepInto() 13 14 foo_line = line_number("foo.cpp", '// End up here') 15 self.expect("frame info", substrs=["foo.cpp:{}:".format(foo_line)]) 16