From 5f4c4708ca67695468c114597e7e3408375dd098 Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Wed, 3 Mar 2021 10:01:17 +0000 Subject: Add 'wpsize' variable to access the data size from a watchpoint (#7837) --- docs/source/debugger/watchpoint.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/source/debugger') 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 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 parameter provides a command that is executed whenever the watchpoint is hit and the 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 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 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: | -- cgit v1.2.3-70-g09d2