1import lldb 2from lldbsuite.test.lldbtest import TestBase 3from lldbsuite.test import lldbutil 4 5 6class TestCase(TestBase): 7 def test(self): 8 self.build() 9 lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.c")) 10 self.expect("p -g", startstr="(int) -41") 11 self.expect("p -i0 -g", error=True) 12