Crashpad
Public Member Functions | List of all members
crashpad::PtraceConnection Class Referenceabstract

Provides an interface for making ptrace requests against a process and its threads. More...

#include "util/linux/ptrace_connection.h"

Inheritance diagram for crashpad::PtraceConnection:
crashpad::DirectPtraceConnection crashpad::test::FakePtraceConnection

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...
 

Detailed Description

Provides an interface for making ptrace requests against a process and its threads.

Member Function Documentation

◆ Attach()

virtual bool crashpad::PtraceConnection::Attach ( pid_t  tid)
pure virtual

Adds a new thread to this connection.

Parameters
[in]tidThe thread ID of the thread to attach.
Returns
true on success. false on failure with a message logged.

Implemented in crashpad::DirectPtraceConnection, and crashpad::test::FakePtraceConnection.

◆ GetThreadInfo()

virtual bool crashpad::PtraceConnection::GetThreadInfo ( pid_t  tid,
ThreadInfo info 
)
pure virtual

Retrieves a ThreadInfo for a target thread.

Parameters
[in]tidThe thread ID of the target thread.
[out]infoInformation about the thread.
Returns
true on success. false on failure with a message logged.

Implemented in crashpad::test::FakePtraceConnection, and crashpad::DirectPtraceConnection.


The documentation for this class was generated from the following file: