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

Class VtraceExpressionLocals

source code


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

Instance Methods [hide private]
 
__init__(self, trace) source code
 
__getitem__(self, name) 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
Method Details [hide private]

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")