MDB Reference: watch
watch address breakpointtype[:value] [passcount]
Use 'print /a' to determine a variable's address.
The MDB watch command sets a data breakpoint at the specified address.
Parameters
- address
- Data memory address to watch
- breakpointtype
- R = Read, W = Write, RW = Read or Write
- value
- Value that must be read or written for break to occur
- passcount
- Number of times event must occur before program will break
Example
> print /a LATA
The address of LATA: 0x1f886030
> watch 0x1f886030 W:0x01
Watchpoint 1.