Documentation: watch example for arbitrary address (#3268)

Fixes #3266
This commit is contained in:
Felix Geisendörfer
2023-02-13 15:27:14 +01:00
committed by GitHub
parent 4303ae45a8
commit e11e8858ea
2 changed files with 4 additions and 2 deletions

View File

@ -699,8 +699,9 @@ Set watchpoint.
The memory location is specified with the same expression language used by 'print', for example:
watch v
watch -w *(*int)(0x1400007c018)
will watch the address of variable 'v'.
will watch the address of variable 'v' and writes to an int at addr '0x1400007c018'.
Note that writes that do not change the value of the watched memory address might not be reported.

View File

@ -144,8 +144,9 @@ See also: "help on", "help cond" and "help clear"`},
The memory location is specified with the same expression language used by 'print', for example:
watch v
watch -w *(*int)(0x1400007c018)
will watch the address of variable 'v'.
will watch the address of variable 'v' and writes to an int at addr '0x1400007c018'.
Note that writes that do not change the value of the watched memory address might not be reported.