blob: ff12645488d16ecb4e6256bd9f5090aa0776aab0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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)])
|