|
__init__(self,
regdef=( ) ,
metas=( ) ,
pcindex=None,
spindex=None)
Hand in a register definition which consists of a list of
(<name>, <width>) tuples. |
source code
|
|
|
_rctx_Export(self,
sobj)
Given an object with attributes with the same names as registers in
our context, set the ones he has to match our values. |
source code
|
|
|
_rctx_Import(self,
sobj)
Given an object with attributes with the same names as registers in
our context, populate our values from it. |
source code
|
|
|
_xlateToMetaReg(self,
index,
value)
Translate a register value to the meta register value (used when
getting a meta register) |
source code
|
|
|
_xlateToNativeReg(self,
index,
value)
Translate a register value to the native register value (used when
setting a meta register) |
source code
|
|
|
addMetaRegister(self,
name,
idx,
offset,
width)
Meta registers are registers which are really just directly
addressable parts of already existing registers (eax -> al). |
source code
|
|
|
getMetaRegInfo(self,
index)
Return the appropriate realreg, shift, mask info
for the specified metareg idx (or None if it's not
meta). |
source code
|
|
|
getProgramCounter(self)
Get the value of the program counter for this register context. |
source code
|
|
|
|
|
getRegister(self,
index)
Return the current value of the specified register index. |
source code
|
|
|
|
|
|
|
getRegisterInfo(self,
meta=False)
Return an object which can be stored off, and restored to
re-initialize a register context. |
source code
|
|
|
|
|
|
|
|
|
getRegisterSnap(self)
Use this to bulk save off the register state. |
source code
|
|
|
getRegisterWidth(self,
index)
Return the width of the register which lives at the specified index
(width is always in bits). |
source code
|
|
|
getRegisters(self)
Get all the *real* registers from this context as a dictionary of
name value pairs. |
source code
|
|
|
|
|
isDirty(self)
Returns true if registers in this context have been modififed since
their import. |
source code
|
|
|
|
|
|
|
|
|
reprRegister(self,
idx)
This may be used to allow a register context to provide extended repr
(flags breakouts, etc) info about a register. |
source code
|
|
|
|
|
setProgramCounter(self,
value)
Set the value of the program counter for this register contex. |
source code
|
|
|
setRegister(self,
index,
value)
Set a register value by index. |
source code
|
|
|
|
|
|
|
setRegisterInfo(self,
info)
Import the exported data from |
source code
|
|
|
|
|
setRegisters(self,
regdict)
For any name value pairs in the specified dictionary, set the current
register values in this context. |
source code
|
|
|
|