[llvm-branch-commits] [lldb] [lldb] Add synthetic variable support to Get*VariableList. (PR #181501)

Med Ismail Bennani via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 16 11:35:02 PDT 2026


================
@@ -516,14 +522,17 @@ SBValue SBFrame::FindValue(const char *name, ValueType value_type,
       sc.block->AppendVariables(
           can_create, get_parent_variables, stop_if_block_is_inlined_function,
           [frame](Variable *v) { return v->IsInScope(frame); }, &variable_list);
-    if (value_type == eValueTypeVariableGlobal ||
-        value_type == eValueTypeVariableStatic) {
+    // Fetch variables from the frame if we need to get globals/statics/extended
----------------
medismailben wrote:

```suggestion
    // Fetch variables from the frame if we need to get globals/statics/synthetic
```

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


More information about the llvm-branch-commits mailing list