2 Test that we can have persistent pointer variables
8 import lldbsuite.test.lldbutil as lldbutil
9 from lldbsuite.test.lldbtest import *
12 class PersistentPtrUpdateTestCase(TestBase):
14 mydir = TestBase.compute_mydir(__file__)
17 """Test that we can have persistent pointer variables"""
23 # Execute the cleanup function during test case tear down.
24 self.addTearDownHook(cleanup)
26 self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
28 self.runCmd('break set -p here')
30 self.runCmd("run", RUN_SUCCEEDED)
32 self.runCmd("expr void* $foo = 0")
34 self.runCmd("continue")
36 self.expect("expr $foo", substrs=['$foo', '0x0'])