4.Complete one of the following steps:
–Map the shared libraries privately using chatr, as follows: chatr +dbg enable <executable>
On
Explicitly preload the librtc runtime library and start the target application, as follows:
LD_PRELOAD=/opt/langtools/lib//librtc.sl <executable> <arguments>
OR
–Set the target application to preload librtc by using the +rtc option for the chatr command. In addition to automatically loading the librtc library, the +rtc option for the chatr command also maps the shared libraries as private.
To set the target application to preload the librtc runtime library, enter the following command at the
$ chatr +rtc enable <executable>
•Example for Batch Mode RTC on Integrity Systems:
1.Compile the source files.
2.The rtcconfig file must contain entries such as the following:
check_heap=on check_leaks=on check_free=on files=executable_name output_dir=/tmp/results
3.Set the following environment variables as follows: export BATCH_RTC=on
4.Complete one of the following steps:
–Preload the librtc runtime library, as follows:
PRELOAD=/opt/langtools/lib/hpux32/librtc.so <executable> <arguments if any>
OR
–Preload the librtc runtime library, as follows: $ chatr +rtc enable <executable>
•Example from Integrity Systems:
1.Compile the source files.
170