Debian Codegraph @

lldb/test/API/commands/frame/var-dil/basics/NoDebugInfo/TestFrameVarDILNoDebugInfo.py

raw
1 """
2 Test DIL without debug info.
3 """
4
5 import lldb
6 from lldbsuite.test.lldbtest import *
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test import lldbutil
9
10
11 class TestFrameVarDILNoDebugInfo(TestBase):
12 NO_DEBUG_INFO_TESTCASE = True
13
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 )