1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
.. _debugger-registerpoints-list:
Registerpoint Debugger Commands
================================
:ref:`debugger-command-rpset`
sets a registerpoint to trigger on a condition
:ref:`debugger-command-rpclear`
clears registerpoints
:ref:`debugger-command-rpdisable`
disables a registerpoint
:ref:`debugger-command-rpenable`
enables registerpoints
:ref:`debugger-command-rplist`
lists registerpoints
Registerpoints evaluate an expression each time a CPU executes an
instruction and halt execution and activate the debugger if the result
is true (non-zero).
.. _debugger-command-rpset:
rpset
-----
**rp[set] <condition>[,<action>]**
Sets a new registerpoint which will be triggered when the expression
supplied as the **<condition>** evaluates to true (non-zero). Note that
the condition may need to be surrounded with braces ``{ }`` to prevent
it from being interpreted as an assignment. The optional **<action>**
parameter provides a command to be executed whenever the registerpoint
is triggered. Note that you may need to surround the action with braces
``{ }`` to ensure commas and semicolons within the command are not
interpreted in the context of the ``rpset`` command itself.
Each registerpoint that is set is assigned a numeric index which can be
used to refer to it in other registerpoint commands. Registerpoint
indices are unique throughout a session.
Examples:
``rp {PC==150}``
Set a registerpoint that will halt execution whenever the **PC**
register equals 150.
``temp0=0; rp {PC==150},{temp0++; g}``
Set a registerpoint that will increment the variable **temp0**
whenever the **PC** register equals 150.
``rp {temp0==5}``
Set a registerpoint that will halt execution whenever the **temp0**
variable equals 5.
Back to :ref:`debugger-registerpoints-list`
.. _debugger-command-rpclear:
rpclear
-------
**rpclear [<rpnum>,[,…]]**
Clears registerpoints. If **<rpnum>** is specified, the registerpoints
referred to will be cleared. If **<rpnum>** is not specified, all
registerpoints will be cleared.
Examples:
``rpclear 3``
Clear the registerpoint with index 3.
``rpclear``
Clear all registerpoints.
Back to :ref:`debugger-registerpoints-list`
.. _debugger-command-rpdisable:
rpdisable
---------
**rpdisable [<rpnum>[,…]]**
Disables registerpoints. If **<rpnum>** is specified, the
registerpoints referred to will be disabled. If **<rpnum>** is not
specified, all registerpoints will be disabled.
Note that disabling a registerpoint does not delete it, it just
temporarily marks the registerpoint as inactive. Disabled
registerpoints will not cause execution to halt, their condition
expressions will not be evaluated, and their associated commands will
not be executed.
Examples:
``rpdisable 3``
Disable the registerpoint with index 3.
``rpdisable``
Disable all registerpoints.
Back to :ref:`debugger-registerpoints-list`
.. _debugger-command-rpenable:
rpenable
--------
**rpenable [<rpnum>[,…]]**
Enables registerpoints. If **<rpnum>** is specified, the registerpoints
referred to will be enabled. If **<rpnum>** is not specified, all
registerpoints will be enabled.
Examples:
``rpenable 3``
Enable the registerpoint with index 3.
``rpenable``
Enable all registerpoints.
Back to :ref:`debugger-registerpoints-list`
.. _debugger-command-rplist:
rplist
------
**rplist [<CPU>]**
List current registerpoints, along with their indices and conditions,
and any associated actions. If no **<CPU>** is specified,
registerpoints for all CPUs in the system will be listed; if a **<CPU>**
is specified, only registerpoints for that CPU will be listed. The
**<CPU>** can be specified by tag or by debugger CPU number (see
:ref:`debugger-devicespec` for details).
Examples:
``rplist``
List all registerpoints.
``rplist .``
List all registerpoints for the visible CPU.
``rplist maincpu``
List all registerpoints for the CPU with the absolute tag path
``:maincpu``.
Back to :ref:`debugger-registerpoints-list`
|