bolt/deps/llvm-18.1.8/lldb/test/API/lang/cpp/step-through-trampoline/TestStepThroughTrampoline.py
2025-02-14 19:21:04 +01:00

18 lines
558 B
Python

import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class StepThroughTrampoline(TestBase):
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)])