[Lldb-commits] [lldb] [lldb-dap] Move targetId and debuggerId into a session property (PR #175930)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 15 11:51:03 PST 2026


================
@@ -317,6 +317,15 @@ using LaunchResponse = VoidResponse;
 /// An invalid 'frameId' default value.
 #define LLDB_DAP_INVALID_FRAME_ID UINT64_MAX
 
+struct DAPSession {
+  /// Unique ID of an existing target to attach to.
+  lldb::user_id_t targetId;
+
+  /// ID of an existing debugger instance to use.
----------------
da-viper wrote:

The debugger should be unique. but I don't think it should be the case for the target globally. as the target only exists for one debugger. 

I'll leave the target unique for now as that how it is implemented currently. 

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


More information about the lldb-commits mailing list