blob: 2fb08e5de0b24b04dffd0f7578046d23293ce063 [file]
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
@skipIfTargetDoesNotSupportSharedLibraries()
class StepThroughTrampoline(TestBase):
@expectedFailureAll(debug_info=["pdb"], bugnumber="llvm.org/pr149498")
def test(self):
self.build()
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
self,
"// Set a breakpoint here",
lldb.SBFileSpec("main.cpp"),
extra_images=["foo"],
)
thread.StepInto()
foo_line = line_number("foo.cpp", "// End up here")
self.expect("frame info", substrs=["foo.cpp:{}:".format(foo_line)])