[Lldb-commits] [lldb] [NFC][lldb][windows] extract the UpdateProcThreadAttribute logic (PR #180565)

via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 9 09:51:08 PST 2026


================
@@ -135,15 +144,15 @@ ProcessLauncherWindows::LaunchProcess(const ProcessLaunchInfo &launch_info,
     error = attributelist_or_err.getError();
     return HostProcess();
   }
+  ProcThreadAttributeList attributelist = std::move(*attributelist_or_err);
+
   llvm::scope_exit delete_attributelist(
       [&] { DeleteProcThreadAttributeList(startupinfoex.lpAttributeList); });
----------------
Nerixyz wrote:

Do we delete the attribute list twice? Here and in the destructor of `ProcThreadAttributeList` which holds the same pointer.

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


More information about the lldb-commits mailing list