[Lldb-commits] [lldb] [LLDB] Ptrace seize dead processes on Linux (PR #137041)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed May 21 04:46:48 PDT 2025
================
@@ -444,6 +461,88 @@ NativeProcessLinux::NativeProcessLinux(::pid_t pid, int terminal_fd,
SetState(StateType::eStateStopped, false);
}
+llvm::Expected<std::vector<::pid_t>> NativeProcessLinux::Seize(::pid_t pid) {
+ Log *log = GetLog(POSIXLog::Process);
+
+ uint64_t options = GetDefaultPtraceOpts();
+ Status status;
+ // Use a map to keep track of the threads which we have attached/need to
+ // attach.
----------------
DavidSpickett wrote:
In fact why does this say attach a lot. Are we attaching **by** seizing, or are seize and attach two different things completely?
https://github.com/llvm/llvm-project/pull/137041
More information about the lldb-commits
mailing list