brintos

brintos / llvm-project-archived public Read only

0
0
Text · 558 B · ff12645 Raw
19 lines · python
1import lldb2from lldbsuite.test.lldbtest import *3import lldbsuite.test.lldbutil as lldbutil4 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