1 """Test that stepping in object files with multiple compile units works."""
4 from lldbsuite
.test
.decorators
import *
5 from lldbsuite
.test
.lldbtest
import *
6 import lldbsuite
.test
.lldbutil
as lldbutil
9 class TestFullLtoStepping(TestBase
):
10 # The Makefile manually invokes clang.
12 @skipIf(compiler
=no_match("clang"))
13 @skipIf(compiler
="clang", compiler_version
=["<", "13.0"])
17 _
, _
, thread
, _
= lldbutil
.run_to_name_breakpoint(self
, "main")
19 name
= thread
.frames
[0].GetFunctionName()
20 # Check that we start out in main.
21 self
.assertEqual(name
, "main")
23 name
= thread
.frames
[0].GetFunctionName()
24 # Check that we stepped into f.
25 self
.assertEqual(name
, "f")