Package vtrace :: Module watchpoints :: Class Watchpoint
[hide private]
[frames] | no frames]

Class Watchpoint

source code

breakpoints.Breakpoint --+
                         |
                        Watchpoint
Known Subclasses:

The basic "break on access" watchpoint. Extended from Breakpoints and handled almost exactly the same way...

Instance Methods [hide private]
 
__init__(self, addr, expression=None, size=4, perms='rw') source code
 
activate(self, trace)
Actually store off and replace memory for this process.
source code
 
deactivate(self, trace)
Repair the process for continued execution.
source code
 
getName(self) source code
 
inittrace(self, trace)
A callback to do housekeeping at the time the breakpoint is added to the tracer object.
source code
 
resolvedaddr(self, trace, addr)
An initialization callback which will be executed when the actual address for this breakpoint has been resolved.
source code

Inherited from breakpoints.Breakpoint: __repr__, getAddress, getBreakpointCode, getId, isEnabled, notify, resolveAddress, setBreakpointCode, setEnabled

Class Variables [hide private]

Inherited from breakpoints.Breakpoint: bpcodeobj

Method Details [hide private]

__init__(self, addr, expression=None, size=4, perms='rw')
(Constructor)

source code 
Overrides: breakpoints.Breakpoint.__init__

activate(self, trace)

source code 

Actually store off and replace memory for this process. This is caried out by the trace object itself when it begins running or stops. You probably never need to call this (see isEnabled() setEnabled() for boolean enable/disablle)

Overrides: breakpoints.Breakpoint.activate
(inherited documentation)

deactivate(self, trace)

source code 

Repair the process for continued execution. this does NOT make a breakpoint *inactive*, but removes it's "0xcc" from mem (see isEnabled() setEnabled() for boolean enable/dissable)

Overrides: breakpoints.Breakpoint.deactivate
(inherited documentation)

getName(self)

source code 
Overrides: breakpoints.Breakpoint.getName

inittrace(self, trace)

source code 

A callback to do housekeeping at the time the breakpoint is added to the tracer object. This should be used instead of activate for initialization time infoz to save on time per activate call...

Overrides: breakpoints.Breakpoint.inittrace
(inherited documentation)

resolvedaddr(self, trace, addr)

source code 

An initialization callback which will be executed when the actual address for this breakpoint has been resolved.

Overrides: breakpoints.Breakpoint.resolvedaddr
(inherited documentation)