[Lldb-commits] [lldb] [lldb-dap] subscribe to target events at the broadcaster-manager level (PR #201866)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 16 08:44:42 PDT 2026


================
@@ -137,7 +146,18 @@ DAP *DAPSessionManager::FindDAPForTarget(lldb::SBTarget target) {
     if (dap && dap->target.IsValid() && dap->target == target)
       return dap;
 
-  return nullptr;
+  // Fallback for events that fire before SetTarget binds the target.
+  // Route to the unique DAP for this target's debugger if there is one.
+  const lldb::user_id_t debugger_id = target.GetDebugger().GetID();
+  DAP *unique_dap = nullptr;
----------------
charles-zablit wrote:

Fixed!

Sorry for the delay.

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


More information about the lldb-commits mailing list