[Lldb-commits] [lldb] [lldb] Treat synthetic variables as locals (PR #204431)

Aman LaChapelle via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 25 17:56:56 PDT 2026


================
@@ -555,6 +555,11 @@ def get_register_context(self):
         """No register context."""
         return None
 
+    def get_value_type_for_variable(self, var):
+        if var.GetName() == "_handler_one":
+            return lldb.eValueTypeVariableLocal
----------------
bzcheeseman wrote:

@Nerixyz is the synthetic flag exposed to python already? If so, that would solve this problem and the one above quite neatly - we just trust the user to set the synthetic flag correctly and we're good to go.

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


More information about the lldb-commits mailing list