Debugging with GDB (September 2007)

138 Debugging with GDB
These range in size from 26 to 36 bytes and are allocated
in strdup ()
in link_the_list () at test.c:55
in main () at test.c:13
in _start ()
14.10.5 Debugging Memory in Batch Mode
HP WDB supports batch mode memory leak detection, also called batch Run Time
Checking (Batch RTC). Most of the memory debugging features supported in interactive
mode are also supported in batch mode.
Note:
The batch mode commands may not always work when invoked through a
shell script.
14.10.5.1 Setting Configuration Options for Batch Mode
You can specify the batch mode configuration through a configuration file c alled
rtcconfig. The configuration file supports these variables:
check_free=on|off (or) set heap-check free <on/off>
Enables detection of multiple incorrect free of memory
check_heap|heap=on|off (or) set heap-check <on/off>
Enables heap profiling.
check_leaks|leaks=on|off (or) set heap-check leaks <on/off>
Enables leak detection.
check_string=on|off (or) set heap-check string <on/off>
Enables detection for writing out of boundary for strcpy, strncpy, memcpy,
memccpy, memset, memmove, bzero, bcopy.
check_bounds|bounds=on|off (or) set heap-check bounds <on/off>
Enables checking of b ounds corruption.
files=<file1:file2:...|fileN>
Specifies the executables for which memory leak detection is e nabled. if files
option is not specified, after setting BATCH_RTC=on, RTC will instrument ALL
executables.
frame_count=no_frames (or) set heap-check frame-count <no_frames>
Sets the numb e r of frames to be printed for leak context.
min_heap_size=block_size (or) set heap-check min-heap-size <block_size>
Sets the minimum block size to use for heap reporting.
min_leak_size=block_size (or) set heap-check min-leak-size <block_size>
Sets the minimum block size to use for leak detection.
output_dir=output_data_dir
Species the name of the output data directory.