watch

Set a watchpoint that will break when value of EXPRESSION is written.

watch [-l] EXPRESSION [thread THREADNUM]

  • -l[ocation] – Deprecated, always set.
  • EXPRESSION – Expression of the address to break at when written into.
  • THREADNUM – Watchpoint scope is restricted to thread number THREADNUM.

Wind River Debugger only supports location watchpoints, EXPRESSION is evaluated to determine it’s address and size. The watchpoint is then planted using these data.

Specifying -l option or not has no impact, -l paradigm is always used.

If thread is given, the watchpoint scope is restricted to the thread number THREADNUM. THREADNUM is the thread index as displayed by “info threads”.

Do “help breakpoints” for info on other commands dealing with breakpoint.