Base class for breakpoints. Here's the breakpoints state machine.
|
|
__init__(self,
address,
size=1,
condition=True,
action=None)
Breakpoint object. |
|
|
|
|
|
|
tuple( int, int )
|
get_span(self)
Returns:
Starting and ending address of the memory range covered by the
breakpoint. |
|
|
|
|
__bad_transition(self,
state)
Raises an AssertionError exception for an invalid state
transition. |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|
|
bool
|
|
|
bool
|
|
|
bool
|
|
|
bool
|
|
|
int
|
|
|
str
|
get_state_name(self)
Returns:
The name of the current state of the breakpoint. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hit(self,
event)
Notify a breakpoint that it's been hit. |
|
|
|
bool
|
is_here(self,
address)
Returns:
True if the address is within the range of the
breakpoint. |
|
|
|
int
|
get_address(self)
Returns:
The target memory address for the breakpoint. |
|
|
|
int
|
get_size(self)
Returns:
The size in bytes of the breakpoint. |
|
|
|
bool
|
is_conditional(self)
Returns:
True if the breakpoint has a condition callback defined. |
|
|
|
bool
|
is_unconditional(self)
Returns:
True if the breakpoint doesn't have a condition callback
defined. |
|
|
|
bool, function
|
get_condition(self)
Returns:
Returns the condition callback for conditional breakpoints. |
|
|
|
|
set_condition(self,
condition=True)
Sets a new condition callback for the breakpoint. |
|
|
|
bool
|
eval_condition(self,
event)
Evaluates the breakpoint condition, if any was set. |
|
|
|
bool
|
is_automatic(self)
Returns:
True if the breakpoint has an action callback defined. |
|
|
|
bool
|
is_interactive(self)
Returns:
True if the breakpoint doesn't have an action callback
defined. |
|
|
|
bool, function
|
get_action(self)
Returns:
Returns the action callback for automatic breakpoints. |
|
|
|
|
set_action(self,
action=None)
Sets a new action callback for the breakpoint. |
|
|
|
|
run_action(self,
event)
Executes the breakpoint action callback, if any was set. |
|
|
|
str
|
typeName = 'breakpoint'
User friendly breakpoint type string.
|
|
dict { int → str }
|
stateNames = {0: 'disabled', 1: 'enabled', 2: 'one shot', 3: '...
User-friendly names for each breakpoint state.
|
|
int
|
DISABLED = 0
Disabled → Enabled, OneShot
|
|
int
|
ENABLED = 1
Enabled → Running, Disabled
|
|
int
|
ONESHOT = 2
OneShot → Disabled
|
|
int
|
RUNNING = 3
Running → Enabled, Disabled
|