[llvm-branch-commits] [lldb] [lldb] Add support for ScriptedFrame to provide values/variables. (PR #178575)

Med Ismail Bennani via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 29 10:52:30 PST 2026


================
@@ -265,3 +297,38 @@ lldb::RegisterContextSP ScriptedFrame::GetRegisterContext() {
 
   return m_reg_context_sp;
 }
+
+VariableList *ScriptedFrame::GetVariableList(bool get_file_globals,
+                                             Status *error_ptr) {
+  return m_variable_list_sp.get();
+}
+
+lldb::VariableListSP
+ScriptedFrame::GetInScopeVariableList(bool get_file_globals,
+                                      bool must_have_valid_location) {
+  return m_variable_list_sp;
+}
----------------
medismailben wrote:

We should call the python script here and build the variable list. The Scripted affordances should remain as stateless as possible and just act as shims.

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


More information about the llvm-branch-commits mailing list