[Lldb-commits] [lldb] [LLDB] Add framework for Data Inspection Language (DIL) work. (PR #115666)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 12 00:00:34 PST 2024


================
@@ -56,8 +56,19 @@ DWARFASTParser::ParseChildArrayInfo(const DWARFDIE &parent_die,
                 if (auto frame = exe_ctx->GetFrameSP()) {
                   Status error;
                   lldb::VariableSP var_sp;
-                  auto valobj_sp = frame->GetValueForVariableExpressionPath(
-                      var_die.GetName(), eNoDynamicValues, 0, var_sp, error);
+                  lldb::TargetSP target_sp = frame->CalculateTarget();
+                  bool use_DIL = target_sp->GetUseDIL(
+                      (lldb_private::ExecutionContext *)exe_ctx);
----------------
labath wrote:

It looks like this cast wouldn't be required if you changed `GetExperimentalPropertyValue` to take a const execution context (all of the functions below it already take a const argument)

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


More information about the lldb-commits mailing list