[Lldb-commits] [lldb] [LLDB] Add framework for Data Inspection Language (DIL) work. (PR #115666)
Andy Hippo via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 13 02:17:40 PST 2024
================
@@ -4385,6 +4385,27 @@ bool TargetProperties::GetInjectLocalVariables(
.value_or(true);
}
+bool TargetProperties::GetUseDIL(ExecutionContext *exe_ctx) const {
+ const Property *exp_property =
+ m_collection_sp->GetPropertyAtIndex(ePropertyExperimental, exe_ctx);
+ OptionValueProperties *exp_values =
+ exp_property->GetValue()->GetAsProperties();
+ if (exp_values)
+ return exp_values->GetPropertyAtIndexAs<bool>(ePropertyUseDIL, exe_ctx)
+ .value_or(false);
+ else
+ return true;
----------------
werat wrote:
Should this be `false` as well? Otherwise DIL will be enabled if `exp_values` is not available (not sure when this happens though).
https://github.com/llvm/llvm-project/pull/115666
More information about the lldb-commits
mailing list