30 lines · python
1"""2Test DIL without debug info.3"""4 5import lldb6from lldbsuite.test.lldbtest import *7from lldbsuite.test.decorators import *8from lldbsuite.test import lldbutil9 10 11class TestFrameVarDILNoDebugInfo(TestBase):12 NO_DEBUG_INFO_TESTCASE = True13 14 def test_no_debug_info(self):15 self.build()16 lldbutil.run_to_name_breakpoint(self, "main")17 18 self.runCmd("settings set target.experimental.use-DIL true")19 20 self.expect(21 "frame var 'argc'",22 error=True,23 substrs=["use of undeclared identifier"],24 )25 self.expect(26 "frame var 'foo'",27 error=True,28 substrs=["use of undeclared identifier"],29 )30