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

via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 27 08:02:52 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,
----------------
cmtice wrote:

I know it's only two options, but I still think I prefer this method over introducing a new function name into the API.   Unless there's a strong argument against it, could you please do this?

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


More information about the lldb-commits mailing list