Crashpad
Public Member Functions | Protected Attributes | List of all members
crashpad::AuxiliaryVector Class Reference

Read the auxiliary vector for a target process. More...

#include "util/linux/auxiliary_vector.h"

Public Member Functions

bool Initialize (pid_t pid, bool is_64_bit)
 Initializes this object with the auxiliary vector for the process with process ID pid. More...
 
template<typename V >
bool GetValue (uint64_t type, V *value) const
 Retrieve a value from the vector. More...
 

Protected Attributes

std::map< uint64_t, uint64_t > values_
 

Detailed Description

Read the auxiliary vector for a target process.

Member Function Documentation

◆ GetValue()

template<typename V >
bool crashpad::AuxiliaryVector::GetValue ( uint64_t  type,
V *  value 
) const
inline

Retrieve a value from the vector.

Parameters
[in]typeSpecifies which value should be retrieved. The possible values for this parameter are defined by <linux/auxvec.h>.
[out]valueThe value, casted to an appropriate type, if found.
Returns
true if the value is found.

◆ Initialize()

bool crashpad::AuxiliaryVector::Initialize ( pid_t  pid,
bool  is_64_bit 
)

Initializes this object with the auxiliary vector for the process with process ID pid.

This method must be called successfully prior to calling any other method in this class.

Parameters
[in]pidThe process ID of a target process.
[in]is_64_bitWhether the target process is 64-bit.
Returns
true on success, false on failure with a message logged.

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