summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/debugger
diff options
context:
space:
mode:
author Scott Percival <code@moral.net.au>2021-03-03 10:01:17 +0000
committer GitHub <noreply@github.com>2021-03-03 11:01:17 +0100
commit5f4c4708ca67695468c114597e7e3408375dd098 (patch)
tree950486a9ff634a041cdbecb57e38d5b0a619feea /docs/source/debugger
parent44cec5caaff1dbc24ee9f154c1745888b2319128 (diff)
Add 'wpsize' variable to access the data size from a watchpoint (#7837)
Diffstat (limited to 'docs/source/debugger')
-rw-r--r--docs/source/debugger/watchpoint.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/source/debugger/watchpoint.rst b/docs/source/debugger/watchpoint.rst
index f80fa152197..6bce92fd6c9 100644
--- a/docs/source/debugger/watchpoint.rst
+++ b/docs/source/debugger/watchpoint.rst
@@ -26,7 +26,7 @@ wpset
| The optional <condition> parameter lets you specify an expression that will be evaluated each time the watchpoint is hit. If the result of the expression is true (non-zero), the watchpoint will actually halt execution; otherwise, execution will continue with no notification.
| The optional <action> parameter provides a command that is executed whenever the watchpoint is hit and the <condition> is true. Note that you may need to embed the action within braces { } in order to prevent commas and semicolons from being interpreted as applying to the wpset command itself.
| Each watchpoint that is set is assigned an index which can be used in other watchpoint commands to reference this watchpoint.
-| In order to help <condition> expressions, two variables are available. For all watchpoints, the variable 'wpaddr' is set to the address that actually triggered the watchpoint. For write watchpoints, the variable 'wpdata' is set to the data that is being written.
+| In order to help <condition> expressions, two variables are available. The variable 'wpaddr' is set to the address that actually triggered the watchpoint, the variable 'wpdata' is set to the data that is being read or written, and the variable 'wpsize' is set to the size of the data in bytes.
|
| Examples:
|