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.
 
RegisterValueoperator[] (size_t index)
 Gets or sets a register by its index.
 
const RegisterValueoperator[] (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

GDBServerFoundation::RegisterSetContainer::RegisterSetContainer ( size_t  registerCount)
inline

Creates an instance of RegisterSetContainer given the number of registers.

Member Function Documentation

RegisterValue& GDBServerFoundation::RegisterSetContainer::operator[] ( size_t  index)
inline

Gets or sets a register by its index.

const RegisterValue& GDBServerFoundation::RegisterSetContainer::operator[] ( size_t  index) const
inline

Gets a register value by its index.

size_t GDBServerFoundation::RegisterSetContainer::RegisterCount ( )
inline

Returns the total amount of registers.


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