Debugging with GDB (February 2008)

Table Of Contents
Chapter 14: HP-UX Configuration-Specific Information 139
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 bounds corruption.
files=<file1:file2:...|fileN>
Specifies the executables for which memory leak detection is enabled. 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 number 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.
scramble_blocks=on|off (or) set heap-check scramble <on/off>
Enables block scrambling.
Batch mode leak detection stops the application at the end, when libraries are being
unloaded, and invokes HP WDB to print the leak or heap data.
Note:
It is incorrect usage to use spaces before or after the ’=’ symbol in the batch
mode configuration options in the configuration file, rtcconfig. Additionally,
it is incorrect usage to use spaces before the batch mode configuration options.
For example:
Correct Usage:
$ cat rtcconfig
check_leaks=on
check_heap=on
files=batchrtc4
$
Incorrect Usage: