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