GDBServerFoundation::RegisterSetContainer Class Reference
Stores values of some or all target registers. More...
#include <GDBRegisters.h>
Public Member Functions | |
RegisterSetContainer (size_t registerCount) | |
Creates an instance of RegisterSetContainer given the number of registers. | |
RegisterValue & | operator[] (size_t index) |
Gets or sets a register by its index. | |
const RegisterValue & | operator[] (size_t index) const |
Gets a register value by its index. | |
size_t | RegisterCount () |
Returns the total amount of registers. | |
Detailed Description
Stores values of some or all target registers.
This class should be used in conjunction with the target-specific register index enumeration. E.g.
values[rgEAX] = RegisterValue(context.Eax, 4)
To test whether a register value is provided, the following construct should be used:
if(values[rgEAX].Valid) { ... }
Note that it's safe to use the [] operator as long as its argument is below the RegisterCount().
- Examples:
- SimpleWin32Server/SimpleWin32Server.cpp.
Constructor & Destructor Documentation
|
inline |
Creates an instance of RegisterSetContainer given the number of registers.
Member Function Documentation
|
inline |
Gets or sets a register by its index.
|
inline |
Gets a register value by its index.
|
inline |
Returns the total amount of registers.
The documentation for this class was generated from the following file: