[Lldb-commits] [lldb] [LLDB] Ptrace seize dead process (PR #137041)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 08:37:39 PDT 2025


================
@@ -1304,6 +1304,9 @@ void GDBRemoteCommunicationServerCommon::
     if (!abi.empty())
       response.Printf("elf_abi:%s;", abi.c_str());
     response.Printf("ptrsize:%d;", proc_arch.GetAddressByteSize());
+    std::optional<bool> non_resumable = proc_info.IsNonResumable();
+    if (non_resumable)
+      response.Printf("non_resumable:%d", *non_resumable);
----------------
Jlalond wrote:

Your intuition is correct, for now this works, but in the future (if we want to support `O_TRACEEXIT`), we would need to update this. Currently I can get away with attach returning a process info that we can't resume. 

This is still very WIP, as I'm trying to sort with Greg the gotcha's. I will break this patch up into pieces soon :)

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


More information about the lldb-commits mailing list