Debugging Dynamic Memory Usage Errors Using HP WDB (5900-1474; WDB 6.2; January 2011)
#4 0x70ee3478 in _start+0xc0 () from /usr/lib/libc.2
(gdb) c
Continuing.
Breakpoint 2, main () at watch-addr.c:13
13 exit(0);
(gdb) q
The program is running. Exit anyway? (y or n) y
Monitoring Allocations Greater Than a Specified size
The set heap-check block-size command instructs WDB to stop the program
and transfer the execution control to the user when the program allocates a heap block
whose size is greater than or equal to <num-bytes>.
Following is the syntax for the set heap-check block-size command:
set heap-check block-size <num-bytes>
Example 8 (page 39) illustrates the use of the set heap-check block-size
command.
38