12 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8 def test(self):9 self.build()10 lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))11 self.expect("frame var -P1 p", substrs=["_x = 0", "_y = 0"])12