watchpoint
Format: watchpoint exp
Set a watchpoint on the address indicated by exp, which causes the program to halt when the address is written do.
This command is implemented in one of three ways:
- On systems which support it (emulators, simulators, etc.) a hardware breakpoint is set at the given address. (See
hardbrk.)
- If you compiled your program with the -check=watch option of the Green Hills compiler then you may establish one watchpoint which will operate fairly efficiently. (See the Builder chapter on how to set this.)
- Otherwise, the debugger will create an assertion to check when that address changes value. This will slow down your program considerably. (See
a.)
Copyright © 1999, Green Hills Software. All rights
reserved.