[Lldb-commits] [lldb] [lldb] Support Persistent Variables as DIL Identifiers (PR #215706)

Will Hawkins via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 21 03:18:48 PDT 2026


================
@@ -0,0 +1,96 @@
+"""
+Make sure 'frame var' using DIL parser/evaluator works for persistent/result variables.
+"""
+
+import lldb
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test.decorators import *
+from lldbsuite.test import lldbutil
+
+import os
+import shutil
+import time
+
+
+class TestFrameVarDILGlobalVariableLookup(TestBase):
+    # If your test case doesn't stress debug info, then
+    # set this to true.  That way it won't be run once for
+    # each debug info format.
+    NO_DEBUG_INFO_TESTCASE = True
+
+    @skipIf(macos_version=["<", "15.0"], archs=["arm64", "arm64e"])
+    @skipIf(
+        dwarf_version=["<", "5"],
+        oslist=[lldbplatformutil.getDarwinOSTriples()],
+    )
+    @expectedFailureAll(
+        compiler="clang",
+        compiler_version=["<", "19.0"],
+        oslist=[lldbplatformutil.getDarwinOSTriples()],
+    )
----------------
hawkinsw wrote:

Thanks!! I was in serious _cargo cult_ mode here. Your feedback is really helpful!

https://github.com/llvm/llvm-project/pull/215706


More information about the lldb-commits mailing list