diff --git a/Documentation/cli/README.md b/Documentation/cli/README.md index bb3224d5..8d49e9df 100644 --- a/Documentation/cli/README.md +++ b/Documentation/cli/README.md @@ -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. diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index c3f802ac..3553e78e 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -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.