Read the auxiliary vector for a target process.
More...
#include "util/linux/auxiliary_vector.h"
|
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...
|
|
|
std::map< uint64_t, uint64_t > | values_ |
|
Read the auxiliary vector for a target process.
◆ GetValue()
template<typename V >
bool crashpad::AuxiliaryVector::GetValue |
( |
uint64_t |
type, |
|
|
V * |
value |
|
) |
| const |
|
inline |
Retrieve a value from the vector.
- Parameters
-
[in] | type | Specifies which value should be retrieved. The possible values for this parameter are defined by <linux/auxvec.h> . |
[out] | value | The 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] | pid | The process ID of a target process. |
[in] | is_64_bit | Whether 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:
- util/linux/auxiliary_vector.h
- util/linux/auxiliary_vector.cc