Debian Codegraph @

lldb/test/API/commands/frame/var-dil/basics/LocalVars/TestFrameVarDILLocalVars.py

raw
1 """
2 Make sure 'frame var' using DIL parser/evaultor works for local variables.
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 TestFrameVarDILLocalVars(TestBase):
12 # If your test case doesn't stress debug info, then
13 # set this to true. That way it won't be run once for
14 # each debug info format.
15 NO_DEBUG_INFO_TESTCASE = True
16
17 def test_frame_var(self):
18 self.build()
19 lldbutil.run_to_source_breakpoint(
20 self, "Set a breakpoint here", lldb.SBFileSpec("main.cpp")
21 )
22
23 self.runCmd("settings set target.experimental.use-DIL true")
24 self.expect_var_path("a", value="1")
25 self.expect_var_path("b", value="2")
26 self.expect_var_path("c", value="'\\xfd'")
27 self.expect_var_path("s", value="4")