[Lldb-commits] [lldb] lldb-dap: Stop using replicated variable ids (PR #124232)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 9 09:52:10 PST 2026


================
@@ -62,7 +95,11 @@ struct Variables {
   /// These are the variables evaluated from debug console REPL.
   llvm::DenseMap<int64_t, lldb::SBValue> m_referencedpermanent_variables;
 
-  int64_t m_next_temporary_var_ref{VARREF_FIRST_VAR_IDX};
+  /// Key = dap_frame_id (encodes both thread index ID and frame ID)
+  /// Value = (locals, globals, registers) scopes
+  std::map<uint64_t,
+           std::tuple<lldb::SBValueList, lldb::SBValueList, lldb::SBValueList>>
----------------
ashgti wrote:

You can add a `llvm_unreachable("unknown scope kind");` after the switch statement.

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


More information about the lldb-commits mailing list