Crashpad
|
Provides an interface for making ptrace
requests against a process and its threads.
More...
#include "util/linux/ptrace_connection.h"
Public Member Functions | |
virtual pid_t | GetProcessID ()=0 |
Returns the process ID of the connected process. | |
virtual bool | Attach (pid_t tid)=0 |
Adds a new thread to this connection. More... | |
virtual bool | Is64Bit ()=0 |
Returns true if connected to a 64-bit process. | |
virtual bool | GetThreadInfo (pid_t tid, ThreadInfo *info)=0 |
Retrieves a ThreadInfo for a target thread. More... | |
Provides an interface for making ptrace
requests against a process and its threads.
|
pure virtual |
Adds a new thread to this connection.
[in] | tid | The thread ID of the thread to attach. |
true
on success. false
on failure with a message logged. Implemented in crashpad::DirectPtraceConnection, and crashpad::test::FakePtraceConnection.
|
pure virtual |
Retrieves a ThreadInfo for a target thread.
[in] | tid | The thread ID of the target thread. |
[out] | info | Information about the thread. |
true
on success. false
on failure with a message logged. Implemented in crashpad::test::FakePtraceConnection, and crashpad::DirectPtraceConnection.