Debugging Dynamic Memory Usage Errors Using HP WDB (5900-1474; WDB 6.2; January 2011)

Monitoring a Specific Address
The set heap-check watch command enables you to monitor a specific address. It
instructs the debugger to stop the program execution and transfer execution control to
the user when the specified block at <address> is allocated, or de-allocated.
Following is the syntax for the set heap check watch command:
(gdb) set heap-check watch <address>
Example 7 (page 37) illustrates the use of the set heap-check watch <address>
command.
36