MDB Reference: watch
watchaddressbreakpointtype[:value] [passcount]
Use 'print /a' to determine a variable's address.
TheMDBwatch command sets adata 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 LATAThe address of LATA: 0x1f886030> watch 0x1f886030 W:0x01Watchpoint 1.
