has the filename rtcconfig. If user prefers to set this option, it must include the filename.

Incorrect usage:

export GDBRTC_CONFIG=./ export GDBRTC_CONFIG=/tmp

Correct usage:

export GDBRTC_CONFIG=/tmp/yet_another_config export GDBRTC_CONFIG=/tmp/rtcconfig

BATCH_RTC enables or disables batch memory leak detection.

GDB_SERVER is used to override the default path from where the gdb executable is used to provide the information on memory leak. By default, /opt/langtools/ bin/gdb is used to print the output. This can be overridden by setting GDB_SERVER appropriately.

RTC_MALLOC_CONFIG is used to override the default config and rtcconfig file settings. This variable can be set as follows:

export RTC_MALLOC_CONFIG=config_string1[;config_strings].

The config_strings are separated by a semi-colon(;).

The following config_strings options exist for RTC_MALLOC_CONFIG:

abort_on_bounds=[01]

Aborts execution when heap objects

 

bounds check fail, value is 1, and the

 

environment variable RTC_NO_ABORT

 

is not set.

abort_on_bad_free=[01]

Aborts execution when free or realloc is

 

trying to free a heap object which is not

 

valid, value is 1, and environment

 

variable RTC_NO_ABORT is not set.

abort_on_nomem=[01]

Aborts execution when out of memory

 

if value is 1, and environment variable

 

RTC_NO_ABORT is not set.

leak_logfile=stderr[+]filename

The log file for batch mode must be

 

specified.

 

stderr: error message goes to stderr

 

[+]filename: error message goes to

 

filename, + means output is appended to

 

the file.

168 HP-UX Configuration-Specific Information

Page 168
Image 168
HP gnu source-level debugger 5992-4701 Correct usage, Aborts execution when heap objects, Bounds check fail, value is 1