[Lldb-commits] [lldb] [lldb-dap] assembly breakpoints (PR #139969)

Ely Ronnen via lldb-commits lldb-commits at lists.llvm.org
Mon May 19 14:06:54 PDT 2025


================
@@ -452,6 +475,9 @@ struct DAP {
 
   std::mutex m_active_request_mutex;
   const protocol::Request *m_active_request;
+
+  llvm::StringMap<SourceBreakpointMap> m_source_breakpoints;
+  llvm::DenseMap<int64_t, SourceBreakpointMap> m_source_assembly_breakpoints;
----------------
eronnen wrote:

I think it should be pretty simplified already since the only access to these maps is abstracted by `DAP::SetSourceBreakpoints`

It should be possible to use `Source` as a key but I think it might introduce new complications like implementing a hash / ordering for the struct, and there are extra fields in `Source` like `name` and `presentationHint`

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


More information about the lldb-commits mailing list