[Lldb-commits] [lldb] [lldb] Fix SBAPI breakage in SBFrame::GetValueForVariablePath (PR #218565)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 27 08:34:08 PDT 2026


================
@@ -182,16 +182,19 @@ class LLDB_API SBFrame {
   // expression result and is not a constant object like
   // SBFrame::EvaluateExpression(...) returns, but a child object of the
   // variable value.
-  lldb::SBValue
-  GetValueForVariablePath(const char *var_expr_cstr,
-                          DynamicValueType use_dynamic,
-                          lldb::DILMode mode = lldb::eDILModeFull);
+  lldb::SBValue GetValueForVariablePath(const char *var_path,
+                                        DynamicValueType use_dynamic);
 
   /// The version that doesn't supply a 'use_dynamic' value will use the
   /// target's default.
-  lldb::SBValue
-  GetValueForVariablePath(const char *var_path,
-                          lldb::DILMode mode = lldb::eDILModeFull);
+  lldb::SBValue GetValueForVariablePath(const char *var_path);
+
+  lldb::SBValue GetValueForVariablePathWithMode(const char *var_path,
----------------
da-viper wrote:

The only _issue_ I see is that we will no longer use the default value of `target.prefer-dynamic-value` implicitly.  
On the upside we can pass in an inout SBerror. 

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


More information about the lldb-commits mailing list