Maintains a ptrace() attachment to a process.
More...
#include "util/linux/scoped_ptrace_attach.h"
Public Member Functions | |
| ScopedPtraceAttach (const ScopedPtraceAttach &)=delete | |
| ScopedPtraceAttach & | operator= (const ScopedPtraceAttach &)=delete |
| bool | Reset () |
Detaches from the process by calling ptrace(). | |
| bool | ResetAttach (pid_t pid) |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid(). | |
Maintains a ptrace() attachment to a process.
On destruction, the process will be detached.
| bool crashpad::ScopedPtraceAttach::Reset | ( | ) |
Detaches from the process by calling ptrace().
true on success. false on failure, with a message logged. | bool crashpad::ScopedPtraceAttach::ResetAttach | ( | pid_t | pid | ) |
Detaches from any previously attached process, attaches to the process with process ID pid, and blocks until the target process has stopped by calling waitpid().
true on success. false on failure, with a message logged.