Package vtrace :: Class VtraceExpressionLocals
[hide private]
[frames] | no frames]

Class VtraceExpressionLocals

source code

                    object --+            
                             |            
                          dict --+        
                                 |        
  envi.expression.ExpressionLocals --+    
                                     |    
envi.expression.MemoryExpressionLocals --+
                                         |
                                        VtraceExpressionLocals

A class which serves as the namespace dictionary during the evaluation of an expression on a tracer.

Instance Methods [hide private]
new empty dictionary

__init__(self, trace)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, name)
x[y]
source code
 
go(self)
A shortcut for trace.runAgain() which may be used in breakpoint code (or similar even processors) to begin execution again after event processing...
source code
 
frame(self, index)
Return the address of the saved base pointer for the specified frame.
source code
 
teb(self, threadnum=None)
The expression teb(threadid) will return whatever the platform stores as the int for threadid.
source code
 
bp(self, bpid)
The expression bp(0) returns the resolved address of the given breakpoint
source code
 
meta(self, name)
An expression friendly (terse) way to get trace metadata (equiv to trace.getMeta(name))
source code

Inherited from envi.expression.MemoryExpressionLocals: ispoi, mapbase, maplen, mem, poi, sym

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, trace)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

__getitem__(self, name)
(Indexing operator)

source code 

x[y]

Overrides: dict.__getitem__
(inherited documentation)

frame(self, index)

source code 

Return the address of the saved base pointer for the specified frame.

Usage: frame(<index>)

teb(self, threadnum=None)

source code 

The expression teb(threadid) will return whatever the platform stores as the int for threadid. In the case of windows, this is the TEB, others may be the thread stack base or whatever. If threadid is left out, it uses the threadid of the current thread context.

meta(self, name)

source code 

An expression friendly (terse) way to get trace metadata (equiv to trace.getMeta(name))

Example: meta("foo")